aboutsummaryrefslogtreecommitdiffstats
path: root/test/testdata/eval-fail-assert-equal-function-direct.nix
diff options
context:
space:
mode:
authorRutger Broekhoff2025-07-07 21:52:08 +0200
committerRutger Broekhoff2025-07-07 21:52:08 +0200
commitba61dfd69504ec6263a9dee9931d93adeb6f3142 (patch)
treed6c9b78e50eeab24e0c1c09ab45909a6ae3fd5db /test/testdata/eval-fail-assert-equal-function-direct.nix
downloadverified-dyn-lang-interp-ba61dfd69504ec6263a9dee9931d93adeb6f3142.tar.gz
verified-dyn-lang-interp-ba61dfd69504ec6263a9dee9931d93adeb6f3142.zip
Initialize repository
Diffstat (limited to 'test/testdata/eval-fail-assert-equal-function-direct.nix')
-rw-r--r--test/testdata/eval-fail-assert-equal-function-direct.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/testdata/eval-fail-assert-equal-function-direct.nix b/test/testdata/eval-fail-assert-equal-function-direct.nix
new file mode 100644
index 0000000..68e5e39
--- /dev/null
+++ b/test/testdata/eval-fail-assert-equal-function-direct.nix
@@ -0,0 +1,7 @@
1# Note: functions in nested structures, e.g. attributes, may be optimized away by pointer identity optimization.
2# This only compares a direct comparison and makes no claims about functions in nested structures.
3assert
4 (x: x)
5 ==
6 (x: x);
7abort "unreachable" \ No newline at end of file