lvalue-2.c (f0): Put "error: " marker back.

* gcc.dg/lvalue-2.c (f0): Put "error: " marker back.

From-SVN: r107883
This commit is contained in:
Gabriel Dos Reis 2005-12-02 09:54:01 +00:00 committed by Gabriel Dos Reis
parent da6d971d5f
commit 20186b381a
2 changed files with 10 additions and 6 deletions

View File

@ -1,3 +1,7 @@
2005-12-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
* gcc.dg/lvalue-2.c (f0): Put "error: " marker back.
2005-12-02 Alan Modra <amodra@bigpond.net.au>
PR target/21017

View File

@ -9,12 +9,12 @@ int a, b;
void
f0 (void)
{
(a+b) = 1; /* { dg-error "lvalue required as left operand of assignment" } */
(a+b)++; /* { dg-error "lvalue required as increment operand" } */
++(a+b); /* { dg-error "lvalue required as increment operand" } */
(a+b)--; /* { dg-error "lvalue required as decrement operand" } */
--(a+b); /* { dg-error "lvalue required as decrement operand" } */
&(a+b); /* { dg-error "lvalue required as unary '&' operand" } */
(a+b) = 1; /* { dg-error "error: lvalue required as left operand of assignment" } */
(a+b)++; /* { dg-error "error: lvalue required as increment operand" } */
++(a+b); /* { dg-error "error: lvalue required as increment operand" } */
(a+b)--; /* { dg-error "error: lvalue required as decrement operand" } */
--(a+b); /* { dg-error "error: lvalue required as decrement operand" } */
&(a+b); /* { dg-error "error: lvalue required as unary '&' operand" } */
}
const int c;