1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized" }  */
3 
4 extern void func();
5 
test1(char * signature)6 void test1(char *signature)
7 {
8   char ch = signature[0];
9   if (ch == 15 || ch == 3)
10   {
11     if (ch == 15) func();
12   }
13 }
14 
15 
test2(char * signature)16 void test2(char *signature)
17 {
18   char ch = signature[0];
19   if (ch == 15 || ch == 3)
20   {
21     if (ch > 14) func();
22   }
23 }
24 
25 /* { dg-final { scan-tree-dump-times " == 15" 2 "optimized" } } */
26 /* { dg-final { scan-tree-dump-not " == 3" "optimized" } } */
27 
28 
29