aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.chill/tuples.ch
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.chill/tuples.ch')
-rw-r--r--gdb/testsuite/gdb.chill/tuples.ch9
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.chill/tuples.ch b/gdb/testsuite/gdb.chill/tuples.ch
index 399773a..83381eb 100644
--- a/gdb/testsuite/gdb.chill/tuples.ch
+++ b/gdb/testsuite/gdb.chill/tuples.ch
@@ -28,6 +28,15 @@ DCL j r1 := 4;
DCL i INT;
+newmode vstruct = struct (a, b long,
+ case b of
+ (42): ch8 chars(20),
+ (52): i long
+ else ch1 char
+ esac);
+
+DCL vstr vstruct := [ .a: 10, .b: 52, .i: 100 ];
+
i := 0;
END x;