summaryrefslogtreecommitdiff
path: root/test/Sema/ms-inline-asm-invalid-arch.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/ms-inline-asm-invalid-arch.c')
-rw-r--r--test/Sema/ms-inline-asm-invalid-arch.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Sema/ms-inline-asm-invalid-arch.c b/test/Sema/ms-inline-asm-invalid-arch.c
new file mode 100644
index 000000000000..0870fcb2a799
--- /dev/null
+++ b/test/Sema/ms-inline-asm-invalid-arch.c
@@ -0,0 +1,5 @@
+// RUN: %clang_cc1 %s -triple powerpc64-unknown-linux-gnu -fasm-blocks -verify -fsyntax-only
+
+void f() {
+ __asm nop // expected-error {{Unsupported architecture 'powerpc64' for MS-style inline assembly}}
+}