1 /* Test that stack protection is done on chosen functions. */
3 /* { dg-do compile { target i?86-*-* x86_64-*-* } } */
4 /* { dg-options "-O2 -fstack-protector-explicit" } */
13 int __attribute__((stack_protect)) B()
20 int __attribute__((stack_protect)) c()
28 /* { dg-final { scan-assembler-times "stack_chk_fail" 2 } } */