aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-selective
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2000-04-12 12:55:06 +0000
committerAlan Modra <amodra@gmail.com>2000-04-12 12:55:06 +0000
commit62043cea9be30a598a465fca88c46df26546ecda (patch)
treed07f51476fb05f8b55caafc8444332ac2356462c /ld/testsuite/ld-selective
parente76e4c9104c4584ce920f08b4695c9a0c5dba3c8 (diff)
downloadgdb-62043cea9be30a598a465fca88c46df26546ecda.zip
gdb-62043cea9be30a598a465fca88c46df26546ecda.tar.gz
gdb-62043cea9be30a598a465fca88c46df26546ecda.tar.bz2
Add workaround for gcc-2.95.2 failure.
Diffstat (limited to 'ld/testsuite/ld-selective')
-rw-r--r--ld/testsuite/ld-selective/3.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/ld/testsuite/ld-selective/3.cc b/ld/testsuite/ld-selective/3.cc
index 852bc5d..79d5e96 100644
--- a/ld/testsuite/ld-selective/3.cc
+++ b/ld/testsuite/ld-selective/3.cc
@@ -5,7 +5,7 @@ struct A
};
void A::foo() { } // keep
-void A::bar() { } // loose
+void A::bar() { } // lose
struct B : public A
{
@@ -23,6 +23,13 @@ A *getme() { return &a; } // keep
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.