Debian Codegraph @

gcc/testsuite/g++.dg/no-stack-protector-attr-2.C

raw
1 /* PR c/94722 */
2 /* { dg-do compile } */
3
4 int __attribute__((no_stack_protector, stack_protect)) c() /* { dg-warning "ignoring attribute 'stack_protect' because it conflicts with attribute 'no_stack_protector'" } */
5 {
6 return 0;
7 }