Enable pei386_auto_import by default. Only print a info message about auto
[deliverable/binutils-gdb.git] / ld / testsuite / ld-selective / 5.cc
index 5179d918481485b6fe380ec4b814b16a65278b9f..f5289f874a79378199b1501c0b97b2047d343cf7 100644 (file)
@@ -1,32 +1,32 @@
-// This test currently fails because the C++ front end emits `A' as
-// the base class called rather than `B' as it ought.  At least it
-// is erroring on the safe side...
-
 struct A
 {
   virtual void foo();
   virtual void bar();
 };
 
-void A::foo() { }                      // loose
-void A::bar() { }                      // loose
+void A::foo() { }                      // lose
+void A::bar() { }                      // keep
 
 struct B : public A
 {
   virtual void foo();
 };
 
-void B::foo() { }                      // keep
+void B::foo() { }                      // lose
 
 void _start() __asm__("_start");       // keep
 
-A a;
-B b;                                   // keep
-B *getme() { return &b; }              // keep
+A a;                                   // keep
+B b;
+A *getme() { return &a; }              // keep
+
+extern B* dropme2();
+void dropme1() { dropme2()->foo(); }   // lose
+B *dropme2() { return &b; }            // lose
 
 void _start()
 {
-  getme()->foo();
+  getme()->bar();
 }
 
 extern "C" void __main() { }
This page took 0.024179 seconds and 4 git commands to generate.