Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / gcc.dg / pr97567-2.c
blobc3ead54eaa8eefa409adfa35e4268267f45720ef
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" } } */