summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/lvalue-4.c
blob: bc9290134185ee88daecbddc57053ba46df19ed1 (plain)
1
2
3
4
5
6
7
8
/* PR c/27721 */
/* { dg-do compile } */

void foo()
{
  int i();
  i += 0;  /* { dg-error "lvalue required" } */
}