summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/expr/lval3.C
blob: f106e69619de0cb1adf972b1194fa94ed830fc5c (plain)
1
2
3
4
5
6
7
8
9
// i++ is never an lvalue
void
f()
{
  bool i = 0;
  i++ = 3; // { dg-error "" }
}