Mercurial > hg > CbC > CbC_gcc
view libgomp/testsuite/libgomp.c/omp-single-3.c @ 127:4c56639505ff
fix function.c and add CbC-example Makefile
author | mir3636 |
---|---|
date | Wed, 11 Apr 2018 18:46:58 +0900 |
parents | a06113de4d67 |
children |
line wrap: on
line source
extern void abort (void); void single (int a, int b) { #pragma omp single copyprivate(a) copyprivate(b) { a = b = 5; } if (a != b) abort (); } int main() { #pragma omp parallel single (1, 2); return 0; }