[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git] / clang / test / Parser / no-gnu-inline-asm.c
blob30d4489487df5f46dd6683a3ecbd7b91cb5ce1c5
1 // RUN: %clang_cc1 %s -triple i686-apple-darwin -verify -fsyntax-only -fno-gnu-inline-asm
3 #if __has_extension(gnu_asm)
4 #error Expected extension 'gnu_asm' to be disabled
5 #endif
7 asm ("INST r1, 0"); // expected-error {{GNU-style inline assembly is disabled}}
9 void foo(void) __asm("__foo_func"); // AsmLabel is OK
10 int foo1 asm("bar1") = 0; // OK
12 asm(" "); // Whitespace is OK
14 void f (void) {
15 long long foo = 0, bar;
16 asm volatile("INST %0, %1" : "=r"(foo) : "r"(bar)); // expected-error {{GNU-style inline assembly is disabled}}
17 asm (""); // Empty is OK
18 return;