aboutsummaryrefslogtreecommitdiff
path: root/tests/refderef.ek
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2024-04-09 18:23:33 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2024-04-09 18:23:33 +0300
commiteda6bcd42128a3e555c99a68f5b31c7e85518fe5 (patch)
treea83376bdf90b0e2f30297e5af24210af99f2b36b /tests/refderef.ek
parent451111dc51df69580d04c9965f70531f50e3d509 (diff)
downloadek-eda6bcd42128a3e555c99a68f5b31c7e85518fe5.tar.gz
ek-eda6bcd42128a3e555c99a68f5b31c7e85518fe5.zip
improve struct handling
Diffstat (limited to 'tests/refderef.ek')
-rw-r--r--tests/refderef.ek11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/refderef.ek b/tests/refderef.ek
new file mode 100644
index 0000000..1420d2c
--- /dev/null
+++ b/tests/refderef.ek
@@ -0,0 +1,11 @@
+typedef i9 {}
+typedef i27 {}
+
+main()
+{
+ *i9 p = 0 as *i9;
+ *i9 a = p*&;
+ a = p*&*&;
+ a = p&*;
+ i9 b = p&**&*;
+}