diff options
author | Steve Ellcey <sje@cup.hp.com> | 2007-05-11 22:56:10 +0000 |
---|---|---|
committer | Steve Ellcey <sje@gcc.gnu.org> | 2007-05-11 22:56:10 +0000 |
commit | cf63664aecc0f7c5ac0c4273494964b315281efc (patch) | |
tree | ded921368736b8ec12221c5941cfdf26dbed0381 /gcc | |
parent | 538075fe425ea95f3845eaaefe644d511d636c48 (diff) | |
download | gcc-cf63664aecc0f7c5ac0c4273494964b315281efc.zip gcc-cf63664aecc0f7c5ac0c4273494964b315281efc.tar.gz gcc-cf63664aecc0f7c5ac0c4273494964b315281efc.tar.bz2 |
re PR c++/31829 (FAIL: g++.dg/warn/multiple-overflow-warn-3.C (test for warnings, line 8))
PR c++/31829
* g++.dg/warn/multiple-overflow-warn-3.C: Change wchar_t to short.
From-SVN: r124628
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/warn/multiple-overflow-warn-3.C | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 6eca719..64c6be3 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2007-05-11 Steve Ellcey <sje@cup.hp.com> + + PR c++/31829 + * g++.dg/warn/multiple-overflow-warn-3.C: Change wchar_t to short. + 2007-05-11 Silvius Rus <rus@google.com> * gcc.dg/Wstrict-aliasing-bogus-const-ptr-nonconst-ptr.c: New test. diff --git a/gcc/testsuite/g++.dg/warn/multiple-overflow-warn-3.C b/gcc/testsuite/g++.dg/warn/multiple-overflow-warn-3.C index 491f7af..afb4e51 100644 --- a/gcc/testsuite/g++.dg/warn/multiple-overflow-warn-3.C +++ b/gcc/testsuite/g++.dg/warn/multiple-overflow-warn-3.C @@ -2,10 +2,10 @@ /* { dg-do compile } */ /* { dg-options "-Woverflow" } */ -wchar_t +short int g (void) { - wchar_t wc = ((wchar_t)1 << 31) - 1; /* { dg-bogus "overflow .* overflow" } */ + short int wc = ((short int)1 << 31) - 1; /* { dg-bogus "overflow .* overflow" } */ /* { dg-warning "overflow" "" { target *-*-* } 8 } */ return wc; } |