xref: /aosp_15_r20/external/llvm/test/MC/MachO/linker-option-1.s (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker// RUN: not llvm-mc -triple x86_64-apple-darwin10 %s 2> %t.err > %t
2*9880d681SAndroid Build Coastguard Worker// RUN: FileCheck --check-prefix=CHECK-OUTPUT < %t %s
3*9880d681SAndroid Build Coastguard Worker// RUN: FileCheck --check-prefix=CHECK-ERROR < %t.err %s
4*9880d681SAndroid Build Coastguard Worker
5*9880d681SAndroid Build Coastguard Worker// CHECK-OUTPUT: .linker_option "a"
6*9880d681SAndroid Build Coastguard Worker.linker_option "a"
7*9880d681SAndroid Build Coastguard Worker// CHECK-OUTPUT: .linker_option "a", "b"
8*9880d681SAndroid Build Coastguard Worker.linker_option "a", "b"
9*9880d681SAndroid Build Coastguard Worker// CHECK-OUTPUT-NOT: .linker_option
10*9880d681SAndroid Build Coastguard Worker// CHECK-ERROR: expected string in '.linker_option' directive
11*9880d681SAndroid Build Coastguard Worker// CHECK-ERROR: .linker_option 10
12*9880d681SAndroid Build Coastguard Worker// CHECK-ERROR:                ^
13*9880d681SAndroid Build Coastguard Worker.linker_option 10
14*9880d681SAndroid Build Coastguard Worker// CHECK-ERROR: expected string in '.linker_option' directive
15*9880d681SAndroid Build Coastguard Worker// CHECK-ERROR: .linker_option "a",
16*9880d681SAndroid Build Coastguard Worker// CHECK-ERROR:                    ^
17*9880d681SAndroid Build Coastguard Worker.linker_option "a",
18*9880d681SAndroid Build Coastguard Worker// CHECK-ERROR: unexpected token in '.linker_option' directive
19*9880d681SAndroid Build Coastguard Worker// CHECK-ERROR: .linker_option "a" "b"
20*9880d681SAndroid Build Coastguard Worker// CHECK-ERROR:                    ^
21*9880d681SAndroid Build Coastguard Worker.linker_option "a" "b"
22