1 // RUN
: not llvm-mc
-filetype
=obj
-triple wasm32
%s
-o
/dev
/null
2>&1 | FileCheck
%s
3 .section .data.foo,"",@
11 .section .data.bar,"",@
17 .section .text.main,"",@
19 .functype main () -> (i32)
20 // Expressions involving symbols within the same sections can
be evaluated
21 // prior to writing the object file.
23 i32.const foo-foo_other+
2
24 i32.const foo_other-foo-
10
26 // CHECK
: 'bar': unsupported subtraction expression used in relocation
28 // CHECK
: 'undef_baz': unsupported subtraction expression used in relocation
29 i32.const foo-undef_baz
30 // CHECK
: 'foo': unsupported subtraction expression used in relocation
31 i32.const undef_baz-foo