2 /* { dg-require-effective-target fstack_protector } */
3 /* { dg-options "-fstack-protector-all -O2" } */
5 extern volatile long *stack_chk_guard_ptr
;
7 void __attribute__ ((noipa
))
11 /* Munging the contents of __stack_chk_guard should trigger a
12 stack-smashing failure for this function. */
13 *stack_chk_guard_ptr
+= 1;
19 " .globl stack_chk_guard_ptr\n"
20 "stack_chk_guard_ptr:\n"
21 " .word __stack_chk_guard\n"
22 " .weak __stack_chk_guard\n"
23 "__stack_chk_guard:\n"
26 " .type __stack_chk_fail, %function\n"
30 " .size __stack_chk_fail, .-__stack_chk_fail"