1 // RUN: not llvm-mc -triple i386-linux-gnu %s 2> %t.err | FileCheck %s
2 // RUN: FileCheck --check-prefix=CHECK-ERRORS %s < %t.err
12 // CHECK-ERRORS: <instantiation>:1:1: error: unknown directive
13 // CHECK-ERRORS-NEXT: macrobody0
14 // CHECK-ERRORS-NEXT: ^
15 // CHECK-ERRORS: <instantiation>:1:1: note: while in macro instantiation
16 // CHECK-ERRORS-NEXT: .test0
17 // CHECK-ERRORS-NEXT: ^
18 // CHECK-ERRORS: 11:1: note: while in macro instantiation
19 // CHECK-ERRORS-NEXT: .test1
20 // CHECK-ERRORS-NEXT: ^
29 .ascii "\_a \_b \_c \\_c"
32 // CHECK: .ascii "1 2 3 \003"
35 // CHECK: .ascii "1 2 3 \003"
38 .macro test3_prime _a _b _c
42 // CHECK: .ascii "1 (23) "
45 // CHECK: .ascii "1 (23) "
48 // CHECK: .ascii "1 2 "
72 .macro test8 _a, _b, _c
80 // CHECK: .ascii "a,b,c"
82 // CHECK: .ascii "%1,%2,%3"
83 test8 %1 %2 %3 #a comment
84 // CHECK: .ascii "x-y,z,1"
86 // CHECK: .ascii "1 2 3"
89 // CHECK: .ascii "1,2,3"
92 // CHECK: .ascii "1,2,3"
100 // CHECK: .ascii "$20"
103 // CHECK-ERRORS: 102:10: error: Wrong number of arguments
104 // CHECK-ERRORS-NEXT: test10 42
105 // CHECK-ERRORS-NEXT: ^