aboutsummaryrefslogtreecommitdiffstats
path: root/test/lintwarn.awk
diff options
context:
space:
mode:
Diffstat (limited to 'test/lintwarn.awk')
-rw-r--r--test/lintwarn.awk5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/lintwarn.awk b/test/lintwarn.awk
index cea76bbc..d430a2b4 100644
--- a/test/lintwarn.awk
+++ b/test/lintwarn.awk
@@ -36,3 +36,8 @@ function zz(aa, aa)
return aa
}
@include ""
+BEGIN {
+ print "foo" > "foo" 1 # should warn
+ print "foo" > ("foo" 1) # should not warn
+ system("rm -f foo1 foo2")
+}