aboutsummaryrefslogtreecommitdiff
path: root/testsuite/compilable/opaque_type.elna
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/compilable/opaque_type.elna')
-rw-r--r--testsuite/compilable/opaque_type.elna14
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/compilable/opaque_type.elna b/testsuite/compilable/opaque_type.elna
new file mode 100644
index 0000000..b46cf68
--- /dev/null
+++ b/testsuite/compilable/opaque_type.elna
@@ -0,0 +1,14 @@
+type
+ Handle = extern
+ Alias = Handle
+
+var
+ handle: ^Handle := nil
+ alias: ^Alias
+
+proc take(h: ^Handle): ^Handle
+return h
+
+begin
+ alias := take(handle)
+end.