Debian Codegraph @

gcc/testsuite/g++.dg/pr58245-1.C

raw
1 /* { dg-do compile { target i?86-*-* x86_64-*-* rs6000-*-* s390x-*-* } } */
2 /* { dg-options "-O2 -fstack-protector-all" } */
3
4 void
5 bar (void)
6 {
7 throw 1;
8 }
9
10 /* { dg-final { scan-assembler-times "stack_chk_fail" 1 } } */
11
12 /* When compiling for PI[EC], we issue a .hidden stack_chk_fail_local,
13 that causes the above to fail the expected match count. */
14 /* { dg-additional-options "-fno-PIC" } */