aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/lto/20101015-2_0.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/g++.dg/lto/20101015-2_0.C')
-rw-r--r--gcc-4.9/gcc/testsuite/g++.dg/lto/20101015-2_0.C6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/g++.dg/lto/20101015-2_0.C b/gcc-4.9/gcc/testsuite/g++.dg/lto/20101015-2_0.C
new file mode 100644
index 000000000..9015f53a4
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/g++.dg/lto/20101015-2_0.C
@@ -0,0 +1,6 @@
+// { dg-lto-do link }
+// { dg-lto-options { { -flto } { -g -flto } } }
+// { dg-extra-ld-options "-r -nostdlib" }
+
+struct Base { ~Base (); };
+void fun(void) { struct Deriv : Base { } x; }