re PR lto/43208 (lto1: error: invalid conversion in return statement)

2010-07-20  Richard Guenther  <rguenther@suse.de>

	PR lto/43208
	* gcc.dg/lto/20100720-1_0.c: New testcase.
	* gcc.dg/lto/20100720-1_1.c: Likewise.

From-SVN: r162338
This commit is contained in:
Richard Guenther 2010-07-20 13:03:10 +00:00 committed by Richard Biener
parent d2d571522c
commit eeee47af73
3 changed files with 43 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2010-07-20 Richard Guenther <rguenther@suse.de>
PR lto/43208
* gcc.dg/lto/20100720-1_0.c: New testcase.
* gcc.dg/lto/20100720-1_1.c: Likewise.
2010-07-20 Jakub Jelinek <jakub@redhat.com>
PR debug/45003

View File

@ -0,0 +1,22 @@
/* { dg-lto-do run } */
struct X {
int a;
};
typedef struct list_node *list;
struct list_node {
list next;
struct X *value;
};
list f(void)
{
return 0;
}
int main(void)
{
return 0;
}

View File

@ -0,0 +1,15 @@
struct X {
int b;
};
typedef struct list_node *list;
struct list_node {
list next;
struct X *value;
};
list g(void)
{
return 0;
}