clang/tests/libomp/test.sh

8 lines
107 B
Bash
Executable File

#!/bin/bash
set -exo pipefail
clang -fopenmp openmp-compile-link-test.c
./a.out | grep "Num Threads: 1"