2024-01-16 12:21:16 +01:00
|
|
|
#include "compat.h"
|
|
|
|
|
|
|
|
int main(void)
|
|
|
|
{
|
|
|
|
#pragma omp parallel
|
|
|
|
#pragma omp single
|
|
|
|
{
|
2024-07-24 17:02:57 +02:00
|
|
|
/* Broken clang: https://github.com/llvm/llvm-project/issues/100536 */
|
|
|
|
#pragma clang diagnostic push
|
|
|
|
#pragma clang diagnostic ignored "-Wconversion"
|
2024-01-16 12:21:16 +01:00
|
|
|
#pragma omp taskloop
|
|
|
|
for (int i = 0; i < 10000; i++)
|
|
|
|
{
|
|
|
|
#pragma omp task
|
|
|
|
sleep_us(1);
|
|
|
|
}
|
2024-07-24 17:02:57 +02:00
|
|
|
#pragma clang diagnostic pop
|
2024-01-16 12:21:16 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|