Skip to content

Commit efd805e

Browse files
committed
MC: Test quoted label
1 parent efce7a1 commit efd805e

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

llvm/test/MC/AsmParser/quoted.s

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# RUN: rm -rf %t && split-file %s %t && cd %t
2+
# RUN: llvm-mc -triple x86_64 a.s | FileCheck %s
3+
# RUN: not llvm-mc -triple x86_64 err.s 2>&1 | FileCheck %s --check-prefix=ERR
4+
5+
#--- a.s
6+
# CHECK: .type "a b",@function
7+
# CHECK: "a b":
8+
.type "a b", @function
9+
"a b":
10+
call "a b"
11+
12+
#--- err.s
13+
"a\":
14+
# ERR: 1:2: error: unterminated string constant
15+
# ERR: 1:2: error: unexpected token at start of statement

0 commit comments

Comments
 (0)