aboutsummaryrefslogtreecommitdiff
path: root/tests/ptrs/ptrs.fwd
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2026-05-01 18:37:38 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2026-05-01 18:42:08 +0300
commit7790e27b3423901e2080bfd3c600a65a48d42886 (patch)
treee53f3d2b01fd24ade5eff042cb5d09bd1865c540 /tests/ptrs/ptrs.fwd
parentdbf8737fd34a0766691999e3271e9c5662ffae0d (diff)
downloadfwd-7790e27b3423901e2080bfd3c600a65a48d42886.tar.gz
fwd-7790e27b3423901e2080bfd3c600a65a48d42886.zip
start adding proper tests
Diffstat (limited to 'tests/ptrs/ptrs.fwd')
-rw-r--r--tests/ptrs/ptrs.fwd8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ptrs/ptrs.fwd b/tests/ptrs/ptrs.fwd
new file mode 100644
index 0000000..fbb9cbb
--- /dev/null
+++ b/tests/ptrs/ptrs.fwd
@@ -0,0 +1,8 @@
+import "../../mod/libfwdmem.so"
+
+main()
+{
+ fwdmalloc(sizeof(i64)) => *i64 i;
+ /* deref not allowed on raw pointers */
+ i* + 20 => int something;
+}