aboutsummaryrefslogtreecommitdiff
path: root/testsuite/fail_compilation/opaque_pointer_arithmetic.elna
blob: cb3a20eee248a0d6e6bb5ac0c73470e34c8a637b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
type
  Handle = extern

var
  p: ^Handle

program()
begin
  p := p + 1 (* @Error Opaque type 'Handle' cannot be used as an element type in pointer arithmetic *)
return 0u8

end.