aboutsummaryrefslogtreecommitdiff
path: root/tests/nested_structs
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2024-08-18 00:07:56 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2024-08-18 00:07:56 +0300
commit33fcf676128426f2ac9a4730d63fa481bb351518 (patch)
treefb8553e58fb3553e1b1da334b5a4d54e254f2340 /tests/nested_structs
parent0d4e9292d85a169f881926556992d4ae12dcb6f4 (diff)
downloadek-33fcf676128426f2ac9a4730d63fa481bb351518.tar.gz
ek-33fcf676128426f2ac9a4730d63fa481bb351518.zip
make check works again
Diffstat (limited to 'tests/nested_structs')
-rw-r--r--tests/nested_structs/nested_structs.ek17
-rw-r--r--tests/nested_structs/source.mk1
2 files changed, 18 insertions, 0 deletions
diff --git a/tests/nested_structs/nested_structs.ek b/tests/nested_structs/nested_structs.ek
new file mode 100644
index 0000000..1429a77
--- /dev/null
+++ b/tests/nested_structs/nested_structs.ek
@@ -0,0 +1,17 @@
+typedef i27 {}
+typedef i9 {}
+
+typedef a {
+ i27 a;
+ i27 b;
+}
+
+typedef b {
+ a a;
+ i27 b;
+}
+
+main()
+{
+ mut p = b!{.a = a!{.a = 1, .b = 2}, .b = 3};
+}
diff --git a/tests/nested_structs/source.mk b/tests/nested_structs/source.mk
new file mode 100644
index 0000000..9632763
--- /dev/null
+++ b/tests/nested_structs/source.mk
@@ -0,0 +1 @@
+SIMPLE += nested_structs