summaryrefslogtreecommitdiffstats
path: root/contrib/awk/test/lint.awk
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/awk/test/lint.awk')
-rw-r--r--contrib/awk/test/lint.awk14
1 files changed, 14 insertions, 0 deletions
diff --git a/contrib/awk/test/lint.awk b/contrib/awk/test/lint.awk
new file mode 100644
index 0000000..ea7b8e3
--- /dev/null
+++ b/contrib/awk/test/lint.awk
@@ -0,0 +1,14 @@
+# lint.awk --- test lint variable
+
+BEGIN {
+ a[1] = 1
+ LINT = 1
+ delete a[2]
+ LINT = ""
+ delete a[3]
+ LINT = "true"
+ delete a[4]
+ LINT = 0
+ delete a[5]
+ print "done"
+}
OpenPOWER on IntegriCloud