Commit 4970671d by Richard Guenther Committed by Richard Biener

re PR c++/39371 (Incorrectly rejects switch((unsigned int)boolvar))

2009-06-04  Richard Guenther  <rguenther@suse.de>

	PR c++/39371
	* g++.dg/torture/pr40335.C: New testcase.

From-SVN: r148167
parent 72fa3605
2009-06-04 Richard Guenther <rguenther@suse.de>
PR c++/39371
* g++.dg/torture/pr40335.C: New testcase.
2009-06-03 Richard Guenther <rguenther@suse.de>
PR middle-end/40328
......
/* { dg-do run } */
extern "C" void abort (void);
int
main (void)
{
int i = -1;
switch ((signed char) i)
{
case 255: /* { dg-bogus "exceeds maximum value" "" { xfail *-*-* } } */
abort ();
default:
break;
}
}
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