summaryrefslogtreecommitdiffstats
path: root/contrib/awk/test/gsubasgn.awk
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/awk/test/gsubasgn.awk')
-rw-r--r--contrib/awk/test/gsubasgn.awk13
1 files changed, 0 insertions, 13 deletions
diff --git a/contrib/awk/test/gsubasgn.awk b/contrib/awk/test/gsubasgn.awk
deleted file mode 100644
index f0b7701..0000000
--- a/contrib/awk/test/gsubasgn.awk
+++ /dev/null
@@ -1,13 +0,0 @@
-# tests for assigning to a function within that function
-
-#1 - should be bad
-function test1 (r) { gsub(r, "x", test1) }
-BEGIN { test1("") }
-
-#2 - should be bad
-function test2 () { gsub(/a/, "x", test2) }
-BEGIN { test2() }
-
-#3 - should be ok
-function test3 (r) { gsub(/a/, "x", r) }
-BEGIN { test3("") }
OpenPOWER on IntegriCloud