summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr40172-3.c
blob: ea74fce37c6406e8e2b7b6e824ba7e268f4e8d34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* PR middle-end/40172 */
/* { dg-do compile */
/* { dg-xfail-if "" { "*-*-*" } { "*" } { "" } } */
/* { dg-options "-Wall -W -Werror -Wlogical-op" } */

extern int xxx;

#define XXX xxx

int
test (void)
{
  if (!XXX && xxx)
    return 4;
  else
    return 0;
}