Commit 47309fc0 by Richard Biener Committed by Richard Biener

re PR tree-optimization/56501 (gcc 4.6 ICE on noreturn function at -Os and above)

2013-04-03  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/56501
	* gcc.dg/torture/pr56501.c: New testcase.

From-SVN: r197401
parent 6b94a92d
2013-04-03 Richard Biener <rguenther@suse.de>
PR tree-optimization/56501
* gcc.dg/torture/pr56501.c: New testcase.
2013-04-03 Richard Biener <rguenther@suse.de>
PR tree-optimization/56407
* gcc.dg/torture/pr56407.c: New testcase.
......
/* { dg-do compile } */
/* { dg-options "-w" } */
int a;
void try_help () __attribute__ ((__noreturn__));
void try_help ()
{
}
int main ()
{
switch (a)
{
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9':
break;
default:
try_help ();
}
}
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