aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/asm.c
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2011-06-28 18:20:53 +0000
committerEric Christopher <echristo@apple.com>2011-06-28 18:20:53 +0000
commitde31fd7eeebdc64fb043463e7f515dab8eccac8d (patch)
treeb69231ba2b0eb6492e12412c964b1bee6996f59e /test/Sema/asm.c
parentbf9eb88792e022e54a658657bf22e1925948e384 (diff)
Split out logic for valid clobbers and valid inline asm registers.
Fixes rdar://9281377 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134016 91177308-0d34-0410-b5e6-96231b3b80d8
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}}
+}