PR target/55146
[official-gcc.git] / gcc / testsuite / gcc.dg / pr39874.c
blobca452831016dc7188d6b147a2cee0f394274e808
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" } } */
27 /* { dg-final { cleanup-tree-dump "optimized" } } */