Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/pr67512.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* PR middle-end/67512 */ |
2 /* { dg-do compile } */ | |
3 /* { dg-options "-O -Wuninitialized" } */ | |
4 | |
5 extern int fn2 (void); | |
6 extern int fn3 (int); | |
7 void | |
8 fn1 (void) | |
9 { | |
10 int z, m; | |
11 if (1 & m) /* { dg-warning "is used uninitialized" } */ | |
12 z = fn2 (); | |
13 z = 1 == m ? z : 2 == m; | |
14 fn3 (z); | |
15 } |