[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git] / clang / test / Sema / no_stack_protector.c
blob0007435901e8405689ba2a6262e67ba00b942885
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 void __attribute__((no_stack_protector)) foo(void) {}
4 int __attribute__((no_stack_protector)) var; // expected-warning {{'no_stack_protector' attribute only applies to functions}}
5 void __attribute__((no_stack_protector(2))) bar(void) {} // expected-error {{'no_stack_protector' attribute takes no arguments}}