Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / gcc.dg / pr39874.c
blob2db83670662b22a9f298fc2f0d198507b2b9a396
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized" } */
4 extern void func();
6 void test1(char *signature)
8 char ch = signature[0];
9 if (ch == 15 || ch == 3)
11 if (ch == 15) func();
16 void test2(char *signature)
18 char ch = signature[0];
19 if (ch == 15 || ch == 3)
21 if (ch > 14) func();
25 /* { dg-final { scan-tree-dump-times " == 15" 2 "optimized" } } */
26 /* { dg-final { scan-tree-dump-not " == 3" "optimized" } } */