blob: fb789f45d22e62bdd099a2c8bfb3610e91584f30 [file] [log] [blame]
/* APPLE LOCAL file stack-protector default 5095227 */
/* { dg-do compile } */
/* Verify that -fstack-protector is on by default and that it at least
appears to work. */
extern void f2(char *);
void f1(void)
{
char array[256];
f2(array);
}
/* { dg-final { scan-assembler "__stack_chk_guard" } } */
/* { dg-final { scan-assembler "__stack_chk_fail" } } */