- Fix common (arch-independent) tests to explicitly target -linux triple. - Override the triple inside arch-specific tests. - Add cflags to common tests. - Update individual tests. - Expand pipe stderr `|&` shorthand. Reviewed By: rafauler Differential Revision: https://reviews.llvm.org/D125548
16 lines
442 B
C++
16 lines
442 B
C++
/*
|
|
* Check that we don't assert on a duplicate static relocation added by lld
|
|
* against _Z6myfuncv. The same address has a dynamic relocation against it.
|
|
*
|
|
* RUN: %clang %cflags -fPIC -shared %s -o %t.so -Wl,-q -fuse-ld=lld
|
|
* RUN: llvm-bolt %t.so -o %t.so.bolt -relocs
|
|
*/
|
|
|
|
unsigned long long myfunc();
|
|
|
|
unsigned long long (*myglobal)() = myfunc;
|
|
|
|
unsigned long long myfunc() {
|
|
return reinterpret_cast<unsigned long long>(myglobal);
|
|
}
|