2000-04-12 Alan Modra <alan@linuxcare.com.au>
+ * ld-selective/3.cc (_start): Add cheat for gcc-2.95.2 failure.
+
* ld-selective/selective.exp (test4): Test for presence of
foo__1B, not absence. Also check for foo__1A and _start.
White space changes throughout file.
};
void A::foo() { } // keep
-void A::bar() { } // loose
+void A::bar() { } // lose
struct B : public A
{
void _start()
{
getme()->foo();
+#ifdef __GNUC__
+#if (__GNUC__ == 2 && __GNUC_MINOR__ < 96)
+// gcc-2.95.2 gets this test wrong, and loses B::foo().
+// Cheat. After all, we aren't trying to test the compiler here.
+ b.foo();
+#endif
+#endif
}
// In addition, keep A's virtual table.