PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / sra-2.c
blobe838ea4fba3491e397c5bb0d128ff94ddf250938
1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fno-tree-fre -fdump-tree-optimized" } */
4 /* Test for SRA. */
6 void link_error (void);
8 typedef struct teststruct
10 double d;
11 char f1;
12 } teststruct;
15 void
16 copystruct11 (teststruct *param)
18 static teststruct local;
19 param->f1 = 0;
20 local = *param;
21 if (local.f1 != 0)
22 link_error ();
26 /* There should be no reference to link_error. */
27 /* { dg-final { scan-tree-dump-times "link_error" 0 "optimized" { xfail *-*-* } } } */