Fix OpenMP test failing at ci.debian.net

This commit is contained in:
Reshabh Sharma 2018-09-19 16:05:00 +00:00 committed by Sylvestre Ledru
parent 4b21480b15
commit f260dc5371

View File

@ -180,7 +180,7 @@ if test ! -f /usr/lib/llvm-$VERSION/lib/libomp.so; then
fi
# OpenMP
echo '
cat <<EOF > foo.c
//test.c
#include "omp.h"
#include <stdio.h>
@ -189,7 +189,7 @@ int main(void) {
#pragma omp parallel
printf("thread %d\n", omp_get_thread_num());
}
' > foo.c
EOF
clang-$VERSION foo.c -fopenmp -o o
./o > /dev/null