llvm/tests/binutils-plugin-ar/runtest.sh

6 lines
141 B
Bash
Raw Normal View History

2021-02-03 06:33:44 +00:00
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