xref: /llvm-project/clang/test/Sema/no_stack_protector.cpp (revision 9d02770832ea6b32235865e9ac03fb177d8daba1)
1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
2 // expected-no-diagnostics
3 
test1()4 [[gnu::no_stack_protector]] void test1() {}
test2()5 [[clang::no_stack_protector]] void test2() {}
6