summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/lvalue3.C
blob: c7f0803932049cbfd1afb580f05bd7ac5a3ac8ac (plain)
1
2
3
4
5
6
7
8
9
// { dg-do assemble  }
// Bug: C++ semantics for assignment don't match the backend semantics for
// MODIFY_EXPR.

void
foo (int j)
{
  (j = 1)++;			// causes compiler segfault
}