1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized-slim" } */
3
4 struct S
5 {
6 int a, b, c;
7 };
8
9 int ellide (int c);
10
11 static void __attribute__ ((noinline))
12 foo (struct S s)
13 {
14 int c = s.c;
15 if (c != 21)
16 ellide (c);
17 }
18
19 void
20 entry (void)
21 {
22 struct S s;
23 s.a = 1;
24 s.b = 64;
25 s.c = 21;
26 foo (s);
27 }
28
29 /* { dg-final { scan-tree-dump-not "ellide" "optimized" } } */