arm: fix typo in dg-require-effective-target [PR118089]
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / modref-dse-5.c
blobdc2c2892615e4df340cff8308405f870484d6638
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-dse1-details" } */
3 struct a {int a,b,c;};
4 __attribute__ ((noinline))
5 void
6 kill_me (struct a *a)
8 a->a=0;
9 a->b=0;
10 a->c=0;
12 __attribute__ ((noinline))
13 int
14 wrap(int b, struct a *a)
16 kill_me (a);
17 return b;
19 __attribute__ ((noinline))
20 void
21 my_pleasure (struct a *a)
23 a->a=1;
24 a->c=2;
26 __attribute__ ((noinline))
27 int
28 wrap2(int b, struct a *a)
30 my_pleasure (a);
31 return b;
34 int
35 set (struct a *a)
37 wrap (0, a);
38 int ret = wrap2 (0, a);
39 a->b=1;
40 return ret;
42 /* { dg-final { scan-tree-dump "Deleted dead store: wrap" "dse1" } } */