Commit df72d556 by Jan Hubicka Committed by Jan Hubicka

materialize-1_0.c: New file.

	* gcc.dg/lto/materialize-1_0.c: New file.
	* gcc.dg/lto/materialize-1_1.c: New file.

From-SVN: r159911
parent e466e2ce
2010-05-26 Jan Hubicka <jh@suse.cz>
* gcc.dg/lto/materialize-1_0.c: New file.
* gcc.dg/lto/materialize-1_1.c: New file.
2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
* gnat.dg/lto10.adb: New test.
......
/* { dg-lto-options {{ -O3 -fwhopr}} } */
/* { dg-lto-do run } */
extern void clone_me (int, int);
int a=15;
inline int inline_me ()
{
clone_me (0,a);
}
int inline_me (void);
extern int a;
void abort (void);
__attribute__ ((noinline))
void
clone_me (int c, int d)
{
if (!c)
{
if (d!=a)
abort ();
}
}
int
main(void)
{
int i;
for (i=0;i<a;i++)
inline_me ();
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