diff options
Diffstat (limited to 'gold/testsuite/debug_msg.cc')
-rw-r--r-- | gold/testsuite/debug_msg.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gold/testsuite/debug_msg.cc b/gold/testsuite/debug_msg.cc index 9a951f9..1d77bc9 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; } |