Commit 30d1ab75 by Tom de Vries Committed by Tom de Vries

pr51879-12.c: New test.

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

	* gcc.dg/pr51879-12.c: New test.

From-SVN: r186448
parent b2b2f160
2012-04-14 Tom de Vries <tom@codesourcery.com>
* gcc.dg/pr51879-12.c: New test.
2012-04-13 Jason Merrill <jason@redhat.com>
PR c++/52824
......
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-pre" } */
__attribute__((pure)) int bar (int);
__attribute__((pure)) int bar2 (int);
void baz (int);
int x, z;
void
foo (int y)
{
int a = 0;
if (y == 6)
{
a += bar (7);
a += bar2 (6);
}
else
{
a += bar2 (6);
a += bar (7);
}
baz (a);
}
/* { dg-final { scan-tree-dump-times "bar \\(" 1 "pre"} } */
/* { dg-final { scan-tree-dump-times "bar2 \\(" 1 "pre"} } */
/* { dg-final { cleanup-tree-dump "pre" } } */
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