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" } */
12 int __attribute__((stack_protect)) B()
19 int __attribute__((stack_protect)) c()
27 /* { dg-final { scan-assembler-times "stack_chk_fail" 2 } } */