2012-05-07 Richard Guenther <rguenther@suse.de>
PR lto/42987
* g++.dg/lto/pr42987_0.C: New testcase.
* g++.dg/lto/pr42987_1.C: Likewise.
From-SVN: r187231
+2012-05-07 Richard Guenther <rguenther@suse.de>
+
+ PR lto/42987
+ * g++.dg/lto/pr42987_0.C: New testcase.
+ * g++.dg/lto/pr42987_1.C: Likewise.
+
2012-05-07 Tobias Burnus <burnus@net-b.de>
PR fortran/53255
--- /dev/null
+// { dg-lto-do run }
+// { dg-lto-options { { -flto -g } { -flto -flto-partition=none -g } } }
+
+#include <typeinfo>
+
+struct B {
+ virtual void b() {}
+};
+
+static B* f() {
+ struct D : public B {
+ };
+
+ return new D;
+}
+
+extern B* g();
+
+int main () {
+ if (typeid (*f()) == typeid (*g()))
+ return 1;
+}
--- /dev/null
+struct B {
+ virtual void b() {}
+};
+
+static B* f() {
+ struct D : public B {
+ };
+
+ return new D;
+}
+
+B* g() {
+ return f();
+}