aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-selective/5.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-selective/5.cc')
-rw-r--r--ld/testsuite/ld-selective/5.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/ld/testsuite/ld-selective/5.cc b/ld/testsuite/ld-selective/5.cc
index f5289f8..2c974d9 100644
--- a/ld/testsuite/ld-selective/5.cc
+++ b/ld/testsuite/ld-selective/5.cc
@@ -15,6 +15,7 @@ struct B : public A
void B::foo() { } // lose
void _start() __asm__("_start"); // keep
+void start() __asm__("start"); // some toolchains use this name.
A a; // keep
B b;
@@ -29,4 +30,9 @@ void _start()
getme()->bar();
}
+void start ()
+{
+ _start ();
+}
+
extern "C" void __main() { }