llvm-project/clang/test/Sema/no_stack_protector.cpp
Sirui Mu 9d02770832
[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.
2023-12-14 11:31:17 +08:00

6 lines
173 B
C++

// 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() {}