summaryrefslogtreecommitdiff
path: root/test/gsubind.awk
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2015-06-19 12:40:38 +0300
committerArnold D. Robbins <arnold@skeeve.com>2015-06-19 12:40:38 +0300
commitf7cd8a03c09a00c4cb520f881bbe838cf76e718f (patch)
treeb4089722a537426cf28d607a2eab7e8be01c29d9 /test/gsubind.awk
parent20037f36ee350ee64699d311e4296be1f0367dd2 (diff)
downloadgawk-f7cd8a03c09a00c4cb520f881bbe838cf76e718f.tar.gz
Cleanup files and fix up tests for typed regexes and typeof.
Diffstat (limited to 'test/gsubind.awk')
-rw-r--r--test/gsubind.awk9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/gsubind.awk b/test/gsubind.awk
new file mode 100644
index 00000000..fce0d818
--- /dev/null
+++ b/test/gsubind.awk
@@ -0,0 +1,9 @@
+BEGIN {
+ f = "foo"
+ p = @/o/
+ gsub(p, "q", f)
+ print f
+ fun = "gsub"
+ @fun(p, "q", f)
+ print f
+}