diff options
Diffstat (limited to 'testsuite/compilable/generic_pointee.elna')
| -rw-r--r-- | testsuite/compilable/generic_pointee.elna | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/testsuite/compilable/generic_pointee.elna b/testsuite/compilable/generic_pointee.elna new file mode 100644 index 0000000..5ecaedf --- /dev/null +++ b/testsuite/compilable/generic_pointee.elna @@ -0,0 +1,17 @@ +program() + +type + File = record + fd: Int + end + +proc allocate#[T](size: Word) -> ^T +extern + +var + f: ^File + +begin + f := allocate#[File](#size(File)); + assert(f = nil) +end. |
