summaryrefslogtreecommitdiff
path: root/test/badassign1.ok
diff options
context:
space:
mode:
Diffstat (limited to 'test/badassign1.ok')
-rw-r--r--test/badassign1.ok3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/badassign1.ok b/test/badassign1.ok
new file mode 100644
index 00000000..c5ade3b3
--- /dev/null
+++ b/test/badassign1.ok
@@ -0,0 +1,3 @@
+gawk: badassign1.awk:1: BEGIN { $i++ = 3 ; print i }
+gawk: badassign1.awk:1: ^ cannot assign a value to the result of a field post-increment expression
+EXIT CODE: 1