diff options
Diffstat (limited to 'testsuite/fail_compilation/pointer_subtraction_mismatch.elna')
| -rw-r--r-- | testsuite/fail_compilation/pointer_subtraction_mismatch.elna | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/fail_compilation/pointer_subtraction_mismatch.elna b/testsuite/fail_compilation/pointer_subtraction_mismatch.elna new file mode 100644 index 0000000..5ad1dcb --- /dev/null +++ b/testsuite/fail_compilation/pointer_subtraction_mismatch.elna @@ -0,0 +1,10 @@ +program() + +var + p: ^Int + q: ^Word + diff: Int + +begin + diff := p - q (* @Error Invalid operands of type '\^Int' and '\^Word' for operator - *) +end. |
