pr29965-2.c
来自「用于进行gcc测试」· C语言 代码 · 共 99 行
C
99 行
// PR middle-end/29965// Test that OpenMP construct bodies which never return don't cause ICEs.// { dg-do compile }// { dg-options "-O2 -fopenmp" }extern void baz () __attribute__ ((noreturn));voidfoo1 (){#pragma omp sections { for (;;) ; }}voidbar1 (){#pragma omp sections {#pragma omp section baz ();#pragma omp section baz (); }}voidfoo2 (){#pragma omp sections { ;#pragma omp section for (;;) ; }}voidbar2 (){#pragma omp sections {#pragma omp section baz ();#pragma omp section ; }}voidfoo3 (){#pragma omp parallel sections { for (;;) ; }}voidbar3 (){#pragma omp parallel sections {#pragma omp section baz ();#pragma omp section baz (); }}voidfoo4 (){#pragma omp parallel sections { ;#pragma omp section for (;;) ; }}voidbar4 (){#pragma omp parallel sections {#pragma omp section baz ();#pragma omp section ; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?