#!/bin/sh
set -e

cd $AUTOPKGTEST_TMP

cat > test.c << EOF
#include <stdio.h>
int main(void) {
	int i;
#pragma omp parallel for
	for (i = 0; i < 10; i++) {
		printf("%d\\n", i);
	}
}
EOF

opari -rcfile opari.rc -table tab.c test.c

gcc test.mod.c tab.c -o test -lpomp -fopenmp

./test
