diff options
author | manu <manu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-01-02 20:07:44 +0000 |
---|---|---|
committer | manu <manu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-01-02 20:07:44 +0000 |
commit | d6f5f982f614172cc4d23c8372a4eb4b8266d18b (patch) | |
tree | 7487dbc52405b1388776e71eaa3736b0fc7f6c34 /gcc/testsuite/gcc.dg/overflow-warn-3.c | |
parent | 24153880bd9e4f7f7cf825cebc8b476c32717ba0 (diff) | |
download | gcc-d6f5f982f614172cc4d23c8372a4eb4b8266d18b.tar.gz |
2007-01-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
PR c/19977
* c-typeck.c (store_init_value): Don't emit pedantic overflow
warning for non-static initializers.
testsuite/
* gcc/testsuite/gcc.dg/overflow-warn-3.c: Remove XFAIL.
* gcc/testsuite/gcc.dg/overflow-warn-4.c: Remove XFAIL.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@120355 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/overflow-warn-3.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/overflow-warn-3.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.dg/overflow-warn-3.c b/gcc/testsuite/gcc.dg/overflow-warn-3.c index f20940efdcd..2aa8b7f7eb6 100644 --- a/gcc/testsuite/gcc.dg/overflow-warn-3.c +++ b/gcc/testsuite/gcc.dg/overflow-warn-3.c @@ -40,7 +40,7 @@ f (void) /* This expression is not required to be a constant expression, so it should just involve undefined behavior at runtime. */ int c = INT_MAX + 1; /* { dg-warning "warning: integer overflow in expression" } */ - /* { dg-bogus "warning: overflow in constant expression" "constant" { xfail *-*-* } 42 } */ + } /* But this expression does need to be constant. */ |