forked from Imagelibrary/binutils-gdb
* 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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user