2018-03-08 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / ssp-strong-reg.c
blobdb39c1f0a706cbe4e9477fa8f2aa666495a05c3a
1 /* Test that structs returned in registers do not lead to
2 instrumentation with -fstack-protector-strong. */
4 /* { dg-do compile { target { ! ia32 } } } */
5 /* { dg-options "-O2 -fstack-protector-strong" } */
7 struct S {
8 int a;
9 int b;
12 struct S f (void);
14 int g (void)
16 return f ().a;
19 /* { dg-final { scan-assembler-times "stack_chk_fail" 0 } } */