Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/c-c++-common/Wduplicated-branches-13.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
rev | line source |
---|---|
111 | 1 /* PR c/79199 */ |
2 /* { dg-do compile { target int32plus } } */ | |
3 /* { dg-options "-Wduplicated-branches" } */ | |
4 | |
5 unsigned int a, b, c, d, e; | |
6 void | |
7 fn1 (void) | |
8 { | |
9 if (0) /* { dg-warning "this condition has identical branches" } */ | |
10 { | |
11 if (d > 4294967293U) | |
12 (void) 5; | |
13 c = d; | |
14 b = e | a; | |
15 } | |
16 else | |
17 { | |
18 if (d > 4294967293U) | |
19 (void) 5; | |
20 c = d; | |
21 b = e | a; | |
22 } | |
23 } |