mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-03 10:49:58 +00:00
30 lines
349 B
C
30 lines
349 B
C
|
/* { dg-do run } */
|
||
|
|
||
|
#include <stdlib.h>
|
||
|
#include <unistd.h>
|
||
|
|
||
|
__attribute__((noinline, noclone, noreturn))
|
||
|
void
|
||
|
foo ()
|
||
|
{
|
||
|
sleep (4);
|
||
|
exit (0);
|
||
|
}
|
||
|
|
||
|
int
|
||
|
main ()
|
||
|
{
|
||
|
#pragma omp parallel
|
||
|
{
|
||
|
#pragma omp sections
|
||
|
{
|
||
|
foo ();
|
||
|
#pragma omp section
|
||
|
foo ();
|
||
|
#pragma omp section
|
||
|
foo ();
|
||
|
}
|
||
|
}
|
||
|
return 0;
|
||
|
}
|