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:
parent
da6d971d5f
commit
20186b381a
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user