aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/warn/Wparentheses-24.C
blob: 4019d3d828620cfe0b9b24b9103763aa7ac96c16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// { dg-do compile }
// { dg-options "-Wparentheses" }

extern int foo (int);

bool a, b, c;

bool
bar ()
{
  c = a = b;
  foo (0);
  return a = b;
}