summaryrefslogtreecommitdiffstats
path: root/clang/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
commit317be45091d74fa77205312a523f042ebaee9e1c (patch)
tree01762bb610c0dd86c0f57fd2b83b14f7503fb319 /clang/test/Sema/ms-inline-asm.c
parent0fc64f0b11116b455285b40cff7a83819bfd7bfa (diff)
downloadbcm5719-llvm-317be45091d74fa77205312a523f042ebaee9e1c.tar.gz
bcm5719-llvm-317be45091d74fa77205312a523f042ebaee9e1c.zip
Replace an assertion with an error for empty __asm statements.
llvm-svn: 164551
Diffstat (limited to 'clang/test/Sema/ms-inline-asm.c')
-rw-r--r--clang/test/Sema/ms-inline-asm.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/Sema/ms-inline-asm.c b/clang/test/Sema/ms-inline-asm.c
new file mode 100644
index 00000000000..4c9dfd0b599
--- /dev/null
+++ b/clang/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}}
+}
OpenPOWER on IntegriCloud