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
This commit is contained in:
Richard Guenther 2009-06-04 12:41:31 +00:00 committed by Richard Biener
parent 72fa360537
commit 4970671dca
2 changed files with 21 additions and 0 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -0,0 +1,16 @@
/* { 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;
}
}