summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/no-gnu-inline-asm.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Parser/no-gnu-inline-asm.c')
-rw-r--r--clang/test/Parser/no-gnu-inline-asm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/Parser/no-gnu-inline-asm.c b/clang/test/Parser/no-gnu-inline-asm.c
index 03c2ede9488..eda9e0fed6a 100644
--- a/clang/test/Parser/no-gnu-inline-asm.c
+++ b/clang/test/Parser/no-gnu-inline-asm.c
@@ -1,5 +1,9 @@
// RUN: %clang_cc1 %s -triple i686-apple-darwin -verify -fsyntax-only -fno-gnu-inline-asm
+#if __has_extension(gnu_asm)
+#error Expected extension 'gnu_asm' to be disabled
+#endif
+
asm ("INST r1, 0"); // expected-error {{GNU-style inline assembly is disabled}}
void foo() __asm("__foo_func"); // AsmLabel is OK
OpenPOWER on IntegriCloud