diff options
author | pinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-05-29 00:25:25 +0000 |
---|---|---|
committer | pinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-05-29 00:25:25 +0000 |
commit | 3c550432234a640f9ae1d2bc0bd562401d917fd3 (patch) | |
tree | cf32829ced2c56d0078e6325871e873883706429 /gcc/testsuite/gcc.dg/boolcomplex-1.c | |
parent | 92187928d8dacf6890f90977c89c5f54953b4a53 (diff) | |
download | gcc-3c550432234a640f9ae1d2bc0bd562401d917fd3.tar.gz |
2007-05-28 Andrew Pinski <Andrew_pinski@playstation.sony.com>
PR c/31339
* c-typeck.c (build_unary_op <case PREINCREMENT_EXPR,
case POSTINCREMENT_EXPR, case PREDECREMENT_EXPR,
case POSTDECREMENT_EXPR>): Return the error_mark_node
if either the real or imaginary parts would an
error_mark_node.
2007-05-28 Andrew Pinski <Andrew_pinski@playstation.sony.com>
PR c++/31339
* typeck.c (build_unary_op <case PREINCREMENT_EXPR,
case POSTINCREMENT_EXPR, case PREDECREMENT_EXPR,
case POSTDECREMENT_EXPR>): Return the error_mark_node
if either the real or imaginary parts would an
error_mark_node.
2007-05-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
PR c/31339
* gcc.dg/boolcomplex-1.c: New test.
PR c++/31339
* g++.dg/ext/boolcomplex-1.c: New test
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@125156 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/boolcomplex-1.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/boolcomplex-1.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/boolcomplex-1.c b/gcc/testsuite/gcc.dg/boolcomplex-1.c new file mode 100644 index 00000000000..c34da04d6a1 --- /dev/null +++ b/gcc/testsuite/gcc.dg/boolcomplex-1.c @@ -0,0 +1,3 @@ +/* { dg-do compile } */ +/* { dg-options "" } */ +_Bool b = --0i == 0; /* { dg-error "lvalue required as decrement operand" } */ |