diff options
| author | Sirui Mu <msrlancern@gmail.com> | 2023-12-14 11:31:17 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-14 11:31:17 +0800 |
| commit | 9d02770832ea6b32235865e9ac03fb177d8daba1 (patch) | |
| tree | 1b878e1ae1e9822280388b2d0071130333c135b7 /clang/test/Sema/no_stack_protector.cpp | |
| parent | b07aaf8d3bde911638b0370037204898c3c2deb7 (diff) | |
[clang] Parse attribute [[gnu::no_stack_protector]] (#75289)
This commit adds relative TableGen definitions to parse the
`[[gnu::no_stack_protector]]` attribute.
This PR addresses issue #75235.
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() {} |
