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
This commit is contained in:
Steve Ellcey 2007-05-11 22:56:10 +00:00 committed by Steve Ellcey
parent 538075fe42
commit cf63664aec
2 changed files with 7 additions and 2 deletions

View file

@ -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.

View file

@ -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;
}