summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr40172-3.c
blob: 583aab0f7129c35b127fb96fd836d837305a5785 (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;
}