Add missing testcase.
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 26 Oct 2010 21:20:00 +0000 (21:20 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 26 Oct 2010 21:20:00 +0000 (21:20 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165986 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/gcc.dg/lto/pr45736_0.c [new file with mode: 0644]

diff --git a/gcc/testsuite/gcc.dg/lto/pr45736_0.c b/gcc/testsuite/gcc.dg/lto/pr45736_0.c
new file mode 100644 (file)
index 0000000..860e239
--- /dev/null
@@ -0,0 +1,16 @@
+/* { dg-lto-do link } */
+/* { dg-lto-options {{-flto -r -nostdlib -O}} } */
+
+extern void baz (void);
+
+static void __attribute__ ((constructor))
+bar (void)
+{
+  baz ();
+}
+
+void
+foo (void)
+{
+  bar ();
+}