aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/compound-lvalue-1.c
blob: c77403d02e30357f34ecfa4e6f5bb0064f42adbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* Test for deprecation of compound expressions as lvalues.  */
/* Origin: Joseph Myers <jsm@polyomino.org.uk> */
/* { dg-do compile } */
/* { dg-options "" } */

int x, y;

void
foo (void)
{
  (x, y) = 1; /* { dg-warning "lvalue" "compound expression as lvalue deprecated" } */
}