aboutsummaryrefslogtreecommitdiffstats
path: root/test/sandbox1.awk
diff options
context:
space:
mode:
Diffstat (limited to 'test/sandbox1.awk')
-rw-r--r--test/sandbox1.awk7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/sandbox1.awk b/test/sandbox1.awk
new file mode 100644
index 00000000..e84894d7
--- /dev/null
+++ b/test/sandbox1.awk
@@ -0,0 +1,7 @@
+BEGIN {
+ ARGV[ARGC++] = ARGV[1] # should be ok
+ ARGV[ARGC++] = "" # empty string, should be ok
+ ARGV[ARGC++] = "foo=bar" # assignment, should be ok
+ ARGV[ARGC++] = "junk::foo=bar" # assignment, should be ok
+ ARGV[ARGC++] = "/dev/null" # should fatal here
+}