summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/other/error18.C
blob: 9e4d21cfde0b13a0249426273fed81de37042b49 (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/33208

struct A
{
  bool b;
};

void f(A a)
{
  a.b--; // { dg-error "Boolean expression" }
}