summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/g++.dg/parse/error47.C
blob: 44f14c4e4e00ab8a230bbf151addfac7ededa97d (plain)
1
2
3
4
5
6
7
8
9
struct T { };

T foo();

void bar(int a, int b)
{
  if (foo() && a < b) // { dg-error "13:no match for 'operator&&'" }
    ;
}
OpenPOWER on IntegriCloud