gawk-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] gawk branch, feature/mdim-restart, updated. gawk-4.1.0-4690-g278b2


From: Arnold Robbins
Subject: [SCM] gawk branch, feature/mdim-restart, updated. gawk-4.1.0-4690-g278b252a
Date: Sun, 27 Mar 2022 01:23:36 -0400 (EDT)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gawk".

The branch, feature/mdim-restart has been updated
       via  278b252a84ff2af01cb9d572c4b9c1e5b01c2b59 (commit)
      from  349910e7752b6c10ed6f475b83f49bf3577c96d3 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.sv.gnu.org/cgit/gawk.git/commit/?id=278b252a84ff2af01cb9d572c4b9c1e5b01c2b59

commit 278b252a84ff2af01cb9d572c4b9c1e5b01c2b59
Author: Arnold D. Robbins <arnold@skeeve.com>
Date:   Sun Mar 27 08:21:53 2022 +0300

    And the rest of the mdim test files.

diff --git a/test/mdim1.awk b/test/mdim1.awk
new file mode 100644
index 00000000..c1f398d6
--- /dev/null
+++ b/test/mdim1.awk
@@ -0,0 +1,15 @@
+BEGIN {
+       print "typeof(x[0]) is", typeof(x[0])
+       x[1] = x[0]
+       print "typeof(x[1]) is", typeof(x[1])
+       x[0][1] = "xx"
+       print "typeof(x[0]) is", typeof(x[0])
+       print "typeof(x[0][1]) is", typeof(x[0][1])
+       print "typeof(y) is", typeof(y)
+       z = y
+       print "typeof(y) is", typeof(y)
+       print "typeof(z) is", typeof(z)
+
+       x[1][0] = "xx"  # this will fatal
+       print x[1][0]
+}
diff --git a/test/mdim2.awk b/test/mdim2.awk
new file mode 100644
index 00000000..7bc0c127
--- /dev/null
+++ b/test/mdim2.awk
@@ -0,0 +1,9 @@
+BEGIN {
+       p(a[0])
+       print a[0][0]
+}
+
+function p(f)
+{
+       f[0] = 1
+}
diff --git a/test/mdim2.ok b/test/mdim2.ok
new file mode 100644
index 00000000..d00491fd
--- /dev/null
+++ b/test/mdim2.ok
@@ -0,0 +1 @@
+1

-----------------------------------------------------------------------

Summary of changes:
 test/mdim1.awk                  | 15 +++++++++++++++
 test/mdim2.awk                  |  9 +++++++++
 test/{arrayprm3.ok => mdim2.ok} |  0
 3 files changed, 24 insertions(+)
 create mode 100644 test/mdim1.awk
 create mode 100644 test/mdim2.awk
 copy test/{arrayprm3.ok => mdim2.ok} (100%)


hooks/post-receive
-- 
gawk



reply via email to

[Prev in Thread] Current Thread [Next in Thread]