Commit 96d356ef by Richard Guenther Committed by Richard Biener

20091017-1_0.c: New testcase.

2009-10-17  Richard Guenther  <rguenther@suse.de>

	* gcc.dg/lto/20091017-1_0.c: New testcase.
	* gcc.dg/lto/20091017-1_1.c: Likewise.

From-SVN: r152952
parent 39c6e61c
2009-10-17 Richard Guenther <rguenther@suse.de>
* gcc.dg/lto/20091017-1_0.c: New testcase.
* gcc.dg/lto/20091017-1_1.c: Likewise.
2009-10-17 Eric Botcazou <ebotcazou@adacore.com> 2009-10-17 Eric Botcazou <ebotcazou@adacore.com>
* gnat.dg/unchecked_convert4.adb: Add missing rep clause. * gnat.dg/unchecked_convert4.adb: Add missing rep clause.
......
/* { dg-lto-do run } */
struct X {
int i;
};
extern void foo (void *);
extern void abort (void);
int main ()
{
struct X *p;
foo(&p);
if (p != (struct X *)0)
abort ();
return 0;
}
struct X;
void foo (void *q)
{
struct X **p = (struct X **)q;
*p = (struct X *)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