llvm/tests/binutils-plugin-ar/runtest.sh
serge-sans-paille f74c6c01f2 12.0.0 Release
Resolves: rhbz#1929982
2021-04-29 20:48:51 -07:00

6 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