about summary refs log tree commit diff
path: root/third_party/nix/src/tests/lang/eval-fail-antiquoted-path.nix
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/nix/src/tests/lang/eval-fail-antiquoted-path.nix')
-rw-r--r--third_party/nix/src/tests/lang/eval-fail-antiquoted-path.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/third_party/nix/src/tests/lang/eval-fail-antiquoted-path.nix b/third_party/nix/src/tests/lang/eval-fail-antiquoted-path.nix
new file mode 100644
index 000000000000..f2f08107b516
--- /dev/null
+++ b/third_party/nix/src/tests/lang/eval-fail-antiquoted-path.nix
@@ -0,0 +1,4 @@
+# This must fail to evaluate, since ./fnord doesn't exist.  If it did
+# exist, it would produce "/nix/store/<hash>-fnord/xyzzy" (with an
+# appropriate context).
+"${./fnord}/xyzzy"