Files
lib_compiler/tests/regression_subtract_from_pointer.txt
2024-04-13 15:29:53 +02:00

10 lines
257 B
Plaintext

// #failed: resolve
// #error: cannot perform binary operation, types don't qualify for it, left: 'int' right: '*int'
// #error: invalid binary operation for type
main :: proc(): int {
a := 0;
b := &a;
c := a - b;
d := b - a;
return 0;
}