aboutsummaryrefslogtreecommitdiffstats
path: root/test/setrec0.awk
diff options
context:
space:
mode:
Diffstat (limited to 'test/setrec0.awk')
-rw-r--r--test/setrec0.awk8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/setrec0.awk b/test/setrec0.awk
new file mode 100644
index 00000000..8d978aa7
--- /dev/null
+++ b/test/setrec0.awk
@@ -0,0 +1,8 @@
+function reassign(x, y) {
+ $0 = x
+ print y
+}
+
+{
+ reassign("larry", $1)
+}