summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr32061.c
blob: dc1a916f1bbd19f5c4d39ec8e452da99d25ad64f (plain)
1
2
3
4
5
6
7
8
9
10
/* PR c/32061
   { dg-do compile } 
   { dg-options "-Wlogical-op -Wall -Wextra" }
*/
#define FORCE   1
#define FLAG    1
int func (int resp, int flags)
{
  return (resp && (FORCE || (FLAG & flags)));
}