This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Add testcase for PR43208


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.

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;
+}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]