llvm/binutils-plugin-ar/test.sh
Jesus Checa Hidalgo 8b050b7eff tests: Add llvm dist-git tests
* Enable fmf in the repo
* Copied tests from rpms/llvm
* Integrated llvm-devel-cmake which was not in rpms/llvm
2022-08-16 16:37:00 +02:00

7 lines
152 B
Bash
Executable file

#!/bin/sh -eux
set 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