aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/ms-inline-asm.c
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2012-09-24 19:57:59 +0000
committerBob Wilson <bob.wilson@apple.com>2012-09-24 19:57:59 +0000
commitb0f6b9c94077446ceb29167add2e87fb99733a55 (patch)
treefed1197ee2c9cf0608838f2673284fb1b0f0bcd0 /test/Sema/ms-inline-asm.c
parent40d39e39e46eb36635c9735381ca5c4f916d30cd (diff)
Replace an assertion with an error for empty __asm statements.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164551 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/ms-inline-asm.c')
-rw-r--r--test/Sema/ms-inline-asm.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Sema/ms-inline-asm.c b/test/Sema/ms-inline-asm.c
new file mode 100644
index 0000000000..4c9dfd0b59
--- /dev/null
+++ b/test/Sema/ms-inline-asm.c
@@ -0,0 +1,5 @@
+// RUN: %clang_cc1 %s -triple x86_64-apple-darwin10 -fms-extensions -fenable-experimental-ms-inline-asm -verify -fsyntax-only
+
+void t1(void) {
+ __asm __asm // expected-warning {{MS-style inline assembly is not supported}} expected-error {{__asm used with no assembly instructions}}
+}