diff options
Diffstat (limited to 'clang/test/Sema/no_stack_protector.cpp')
| -rw-r--r-- | clang/test/Sema/no_stack_protector.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/Sema/no_stack_protector.cpp b/clang/test/Sema/no_stack_protector.cpp new file mode 100644 index 000000000000..160e3d32a938 --- /dev/null +++ b/clang/test/Sema/no_stack_protector.cpp @@ -0,0 +1,5 @@ +// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s +// expected-no-diagnostics + +[[gnu::no_stack_protector]] void test1() {} +[[clang::no_stack_protector]] void test2() {} |
