aboutsummaryrefslogtreecommitdiff
path: root/tests/struct_cont
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2025-01-10 22:59:41 +0200
committerKimplul <kimi.h.kuparinen@gmail.com>2025-01-10 23:01:35 +0200
commit2d90cea9adb9a3f73cd5b211a4ed9508b505729f (patch)
tree78f9cde6d162fbda9352d2c668ac00a298815b19 /tests/struct_cont
parentdbf3ed3db10f9fa9157d661704e16ba5b73b0e84 (diff)
downloadek-2d90cea9adb9a3f73cd5b211a4ed9508b505729f.tar.gz
ek-2d90cea9adb9a3f73cd5b211a4ed9508b505729f.zip
initial struct continuations implemented
Diffstat (limited to 'tests/struct_cont')
-rw-r--r--tests/struct_cont/source.mk2
-rw-r--r--tests/struct_cont/struct_cont.ek11
2 files changed, 11 insertions, 2 deletions
diff --git a/tests/struct_cont/source.mk b/tests/struct_cont/source.mk
index b986282..5e607c6 100644
--- a/tests/struct_cont/source.mk
+++ b/tests/struct_cont/source.mk
@@ -1 +1 @@
-SIMPLE_XFAIL += struct_cont,'unknown top element'
+SIMPLE += struct_cont
diff --git a/tests/struct_cont/struct_cont.ek b/tests/struct_cont/struct_cont.ek
index f4799aa..6e01763 100644
--- a/tests/struct_cont/struct_cont.ek
+++ b/tests/struct_cont/struct_cont.ek
@@ -1,3 +1,12 @@
-typedef i27 {}
+typedef i27 {
+ /* empty */
+}
+
continue i27 {
+ do_something() {}
+}
+
+main()
+{
+ 29.do_something();
}