aboutsummaryrefslogtreecommitdiff
path: root/testsuite/fail_compilation/pointer_subtraction_mismatch.elna
blob: 5ad1dcb6b8402aa9e7cb67834f404901e5d4dd74 (plain)
1
2
3
4
5
6
7
8
9
10
program()

var
  p: ^Int
  q: ^Word
  diff: Int

begin
  diff := p - q (* @Error Invalid operands of type '\^Int' and '\^Word' for operator - *)
end.