brintos

brintos / llvm-project-archived public Read only

0
0
Text · 463 B · 1ecd46b Raw
9 lines · c
1// RUN: %clang_cc1 -fsyntax-only -verify -std=c23 %s2 3[[gnu::no_stack_protector]] void test1(void) {}4[[clang::no_stack_protector]] void test2(void) {}5 6void __attribute__((no_stack_protector)) foo(void) {}7int __attribute__((no_stack_protector)) var; // expected-warning {{'no_stack_protector' attribute only applies to functions}}8void  __attribute__((no_stack_protector(2))) bar(void) {} // expected-error {{'no_stack_protector' attribute takes no arguments}}9