llvm/tests/binutils-plugin-ar/runtest.sh
Tom Stellard 33a9d21662 Import tests from tests/llvm repository
It's not necessary to store the tests in a separate repository, since
other packages can just reference the tests in this repo.
2021-04-05 21:54:55 +00:00

5 lines
141 B
Bash
Executable file

set -exo pipefail
echo "void lto_function(){}" | clang -flto -O2 -c -x c -o foo.o -
ar crs foo.a foo.o
readelf -c foo.a | grep lto_function