Debian Codegraph @

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

raw
1 /* PR c/94722 */
2 /* Test that stack protection is disabled via no_stack_protector attribute. */
3
4 /* { dg-do compile { target i?86-*-* x86_64-*-* } } */
5 /* { dg-options "-O2 -fstack-protector-all" } */
6
7 /* { dg-do compile { target { ! hppa*-*-* } } } */
8
9 int __attribute__((no_stack_protector)) c()
10 {
11 int a;
12 char b[34];
13 return 0;
14 }
15
16 /* { dg-final { scan-assembler-not "stack_chk_fail" } } */