aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/asm.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/asm.c')
-rw-r--r--test/Sema/asm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Sema/asm.c b/test/Sema/asm.c
index d8161c819b..a3313cad2b 100644
--- a/test/Sema/asm.c
+++ b/test/Sema/asm.c
@@ -113,3 +113,7 @@ void test11(void) {
_Bool b;
asm volatile ("movb %%gs:%P2,%b0" : "=q"(b) : "0"(0), "i"(5L));
}
+
+void test12(void) {
+ register int cc __asm ("cc"); // expected-error{{unknown register name 'cc' in asm}}
+}