diff options
Diffstat (limited to 'testsuite/fail_compilation/opaque_pointer_arithmetic.elna')
| -rw-r--r-- | testsuite/fail_compilation/opaque_pointer_arithmetic.elna | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/fail_compilation/opaque_pointer_arithmetic.elna b/testsuite/fail_compilation/opaque_pointer_arithmetic.elna new file mode 100644 index 0000000..307aed8 --- /dev/null +++ b/testsuite/fail_compilation/opaque_pointer_arithmetic.elna @@ -0,0 +1,9 @@ +type + Handle = extern + +var + p: ^Handle + +begin + p := p + 1 (* @Error Opaque type 'Handle' cannot be used as an element type in pointer arithmetic *) +end. |
