Patchwork Add testcase for PR43208

login
register
mail settings
Submitter Richard Guenther
Date July 20, 2010, 1:01 p.m.
Message ID <alpine.LNX.2.00.1007201501200.1429@zhemvz.fhfr.qr>
Download mbox | patch
Permalink /patch/59307/
State New
Headers show

Comments

Richard Guenther - July 20, 2010, 1:01 p.m.
which got fixed by one of my last commits.

Committed.

Richard.

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.

Patch

Index: gcc/testsuite/gcc.dg/lto/20100720-1_0.c
===================================================================
--- gcc/testsuite/gcc.dg/lto/20100720-1_0.c	(revision 0)
+++ gcc/testsuite/gcc.dg/lto/20100720-1_0.c	(revision 0)
@@ -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;
+}
Index: gcc/testsuite/gcc.dg/lto/20100720-1_1.c
===================================================================
--- gcc/testsuite/gcc.dg/lto/20100720-1_1.c	(revision 0)
+++ gcc/testsuite/gcc.dg/lto/20100720-1_1.c	(revision 0)
@@ -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;
+}