summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/compound-lvalue-1.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/compound-lvalue-1.c')
-rw-r--r--gcc/testsuite/gcc.dg/compound-lvalue-1.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.dg/compound-lvalue-1.c b/gcc/testsuite/gcc.dg/compound-lvalue-1.c
index c77403d02e3..30ed58ff8a1 100644
--- a/gcc/testsuite/gcc.dg/compound-lvalue-1.c
+++ b/gcc/testsuite/gcc.dg/compound-lvalue-1.c
@@ -8,5 +8,6 @@ int x, y;
void
foo (void)
{
- (x, y) = 1; /* { dg-warning "lvalue" "compound expression as lvalue deprecated" } */
+ (x, y) = 1; /* { dg-bogus "warning" "warning in place of error" } */
}
+/* { dg-error "lvalue" "compound expression as lvalue" { target *-*-* } 11 } */