Add a test for bug 827866

This commit is contained in:
Sylvestre Ledru 2018-11-01 13:33:13 +01:00
parent 25526d0a90
commit e002b34e40

View File

@ -76,6 +76,15 @@ fi
echo '#include <emmintrin.h>' > foo.cc
clang++-$VERSION -c foo.cc
# bug 827866
echo 'bool testAndSet(void *atomic) {
return __atomic_test_and_set(atomic, __ATOMIC_SEQ_CST);
}'> foo.cpp
clang++-$VERSION -c -target aarch64-linux-gnu foo.cpp
if ! file foo.o 2>&1 | grep -q "aarch64"; then
echo "Could not find the string 'aarch64' in the output of file"
exit 42
fi
echo '
#include <string.h>
int