add the test to executed llvm ir

This commit is contained in:
Sylvestre Ledru 2020-04-20 23:16:23 +02:00
parent 2048b4af6a
commit 46af6614ca

View File

@ -290,6 +290,13 @@ if ! lli-$VERSION opt.ll|grep -q "lli foo"; then
lli-$VERSION opt.ll
exit 1
fi
clang-$VERSION -O3 -emit-llvm foo.c -c -o foo.bc
chmod +x foo.bc
if ! ./foo.bc|grep -q "lli foo"; then
echo "executing ./foo.bc failed"
./foo.bc
exit 1
fi
echo '#include <stddef.h>' > foo.c
clang-$VERSION -c foo.c