Commit cf63664a by Steve Ellcey Committed by Steve Ellcey

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
parent 538075fe
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.
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment