summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr67512.c
blob: 95f836aea00878ebed3720f15f5fd0302932796e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* PR middle-end/67512 */
/* { dg-do compile }  */
/* { dg-options "-O -Wuninitialized" } */

extern int fn2 (void);
extern int fn3 (int);
void
fn1 (void)
{
  int z, m;
  if (1 & m) /* { dg-warning "is used uninitialized" } */
    z = fn2 ();
  z = 1 == m ? z : 2 == m;
  fn3 (z);
}