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] Testcase for PR48100


Which got fixed on trunk.

Tested on x86_64-unknown-linux-gnu, applied.

Richard.

2011-12-07  Richard Guenther  <rguenther@suse.de>

	PR lto/48100
	* gcc.dg/lto/20111207-1_0.c: New testcase.
	* gcc.dg/lto/20111207-1_1.c: Likewise.
	* gcc.dg/lto/20111207-1_2.c: Likewise.
	* gcc.dg/lto/20111207-1_3.c: Likewise.

Index: gcc/testsuite/gcc.dg/lto/20111207-1_0.c
===================================================================
--- gcc/testsuite/gcc.dg/lto/20111207-1_0.c	(revision 0)
+++ gcc/testsuite/gcc.dg/lto/20111207-1_0.c	(revision 0)
@@ -0,0 +1,4 @@
+/* { dg-lto-do run } */
+/* { dg-lto-options { { -flto } } } */
+/* { dg-require-linker-plugin "" } */
+/* { dg-extra-ld-options "-fuse-linker-plugin" } */
Index: gcc/testsuite/gcc.dg/lto/20111207-1_1.c
===================================================================
--- gcc/testsuite/gcc.dg/lto/20111207-1_1.c	(revision 0)
+++ gcc/testsuite/gcc.dg/lto/20111207-1_1.c	(revision 0)
@@ -0,0 +1,3 @@
+/* { dg-options "-fno-lto" } */
+
+int i;
Index: gcc/testsuite/gcc.dg/lto/20111207-1_2.c
===================================================================
--- gcc/testsuite/gcc.dg/lto/20111207-1_2.c	(revision 0)
+++ gcc/testsuite/gcc.dg/lto/20111207-1_2.c	(revision 0)
@@ -0,0 +1 @@
+int i;
Index: gcc/testsuite/gcc.dg/lto/20111207-1_3.c
===================================================================
--- gcc/testsuite/gcc.dg/lto/20111207-1_3.c	(revision 0)
+++ gcc/testsuite/gcc.dg/lto/20111207-1_3.c	(revision 0)
@@ -0,0 +1,6 @@
+extern int i;
+
+int main()
+{
+  return i;
+}


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