diff options
author | Ian Lance Taylor <ian@airs.com> | 2010-07-27 08:22:49 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 2010-07-27 08:22:49 +0000 |
commit | 9691462bab74c130fe4fdfd5b755b1bd89e1444c (patch) | |
tree | ecf2d8bae45bc3eadf5dafbc6ad9b044adfb2cea /gold/testsuite/odr_violation2.cc | |
parent | ac0b195c018851569c96409a9d13f203f0592535 (diff) | |
download | gdb-9691462bab74c130fe4fdfd5b755b1bd89e1444c.zip gdb-9691462bab74c130fe4fdfd5b755b1bd89e1444c.tar.gz gdb-9691462bab74c130fe4fdfd5b755b1bd89e1444c.tar.bz2 |
* 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/odr_violation2.cc')
-rw-r--r-- | gold/testsuite/odr_violation2.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gold/testsuite/odr_violation2.cc b/gold/testsuite/odr_violation2.cc index d569279..09940d4 100644 --- a/gold/testsuite/odr_violation2.cc +++ b/gold/testsuite/odr_violation2.cc @@ -12,3 +12,12 @@ class Ordering { void SortDescending(int array[], int size) { std::sort(array, array + size, Ordering()); } + +// This is weak in odr_violation1.cc. +extern "C" int OverriddenCFunction(int i) { + return i * i; +} +// This is inline in debug_msg.cc, which makes it a weak symbol too. +int SometimesInlineFunction(int i) { + return i * i; +} |