summaryrefslogtreecommitdiff
path: root/gold/testsuite/debug_msg.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2010-07-27 08:22:49 +0000
committerIan Lance Taylor <ian@airs.com>2010-07-27 08:22:49 +0000
commit9691462bab74c130fe4fdfd5b755b1bd89e1444c (patch)
treeecf2d8bae45bc3eadf5dafbc6ad9b044adfb2cea /gold/testsuite/debug_msg.cc
parentac0b195c018851569c96409a9d13f203f0592535 (diff)
downloadbinutils-gdb-9691462bab74c130fe4fdfd5b755b1bd89e1444c.tar.gz
* testsuite/debug_msg.sh: Test mixed weak/strong symbol behavior.
* gold/testsuite/debug_msg.cc: Likewise. * gold/testsuite/odr_violation1.cc * gold/testsuite/odr_violation2.cc
Diffstat (limited to 'gold/testsuite/debug_msg.cc')
-rw-r--r--gold/testsuite/debug_msg.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/gold/testsuite/debug_msg.cc b/gold/testsuite/debug_msg.cc
index 9a951f963bd..1d77bc91c29 100644
--- a/gold/testsuite/debug_msg.cc
+++ b/gold/testsuite/debug_msg.cc
@@ -59,6 +59,13 @@ class Derived : public Base
void SortAscending(int array[], int size); // in odr_violation1.cc
void SortDescending(int array[], int size); // in odr_violation2.cc
+extern "C" int OverriddenCFunction(int i); // in odr_violation*.cc
+
+inline int SometimesInlineFunction(int i) { // strong in odr_violation2.cc.
+ return i;
+}
+
+
int main()
{
testfn(5);
@@ -75,5 +82,8 @@ int main()
int kSize2 = sizeof(kInput2) / sizeof(int);
SortDescending(kInput2, kSize2);
+ OverriddenCFunction(3);
+ SometimesInlineFunction(3);
+
return 0;
}