Commit f164e49a by Tom de Vries Committed by Tom de Vries

pr52734.c: New test.

2012-04-13  Tom de Vries  <tom@codesourcery.com>

	* gcc.dg/pr52734.c: New test.

From-SVN: r186419
parent 46301137
2012-04-13 Tom de Vries <tom@codesourcery.com>
* gcc.dg/pr52734.c: New test.
2012-04-13 Richard Guenther <rguenther@suse.de>
PR tree-optimization/52969
......
/* { dg-do run } */
/* { dg-options "-O2" } */
int bbb = 0;
int __attribute__((noinline,noclone)) aaa(void)
{
++bbb;
return 0;
}
int __attribute__((noinline,noclone)) ccc(void)
{
int ddd;
/* bbb == 0 */
if (aaa())
return bbb;
/* bbb == 1 */
ddd = bbb;
/* bbb == ddd == 1 */
if (aaa ())
return 0;
/* bbb == 2, ddd == 1 */
return ddd;
}
int main(void)
{
if (ccc() != 1)
__builtin_abort();
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