Commit 51cdce9a by Richard Guenther Committed by Richard Biener

vla-1.c (main): Use result of f1 to avoid optimizing it away if promoted to const.

2011-03-16  Richard Guenther  <rguenther@suse.de>

	* gcc.dg/guality/vla-1.c (main): Use result of f1 to avoid
	optimizing it away if promoted to const.

From-SVN: r171050
parent 4db6d7d7
2011-03-16 Richard Guenther <rguenther@suse.de>
* gcc.dg/guality/vla-1.c (main): Use result of f1 to avoid
optimizing it away if promoted to const.
2011-03-16 Richard Guenther <rguenther@suse.de>
PR tree-optimization/48149
* gcc.dg/fold-complex-1.c: New testcase.
......
......@@ -28,9 +28,10 @@ f2 (int i)
int
main ()
{
volatile int j;
int i = 5;
asm volatile ("" : "=r" (i) : "0" (i));
f1 (i);
j = f1 (i);
f2 (i);
return 0;
}
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