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:
parent
72fa360537
commit
4970671dca
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue