libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / pr97567-2.c
blobc920a4066fabee11642b1fcc4ec47f0199e3be43
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-evrp -fdisable-tree-ethread" } */
4 char a[2];
6 extern int x;
8 void foo(void);
10 signed char g (signed char min, signed char max)
12 signed char i = x;
13 return i < min || max < i ? min : i;
16 void gg (void)
18 signed char t = g (0, 9);
19 /* Ranger should be able to remove the call to foo (). */
20 if (t > 9 || t < 0)
21 foo ();
24 /* { dg-final { scan-tree-dump-not "foo" "evrp" } } */