summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/lvalue1.c
blob: 67b013078c883090d0dd97a5bc5c6e4ae43936bd (plain)
1
2
3
4
5
6
7
8
9
/* PR c/5225 */
/* { dg-do compile } */

int main()
{
  int i;
  +i = 1;	/* { dg-error "lvalue required as left operand of assignment" } */
  return 0;
}