Mercurial > hg > CbC > CbC_gcc
comparison libgomp/testsuite/libgomp.c/sections-2.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 /* { dg-do run } */ | |
2 | |
3 #include <stdlib.h> | |
4 #include <unistd.h> | |
5 | |
6 __attribute__((noinline, noclone, noreturn)) | |
7 void | |
8 foo () | |
9 { | |
10 sleep (4); | |
11 exit (0); | |
12 } | |
13 | |
14 int | |
15 main () | |
16 { | |
17 #pragma omp parallel | |
18 { | |
19 #pragma omp sections | |
20 { | |
21 foo (); | |
22 #pragma omp section | |
23 foo (); | |
24 #pragma omp section | |
25 foo (); | |
26 } | |
27 } | |
28 return 0; | |
29 } |