PageRenderTime 12ms CodeModel.GetById 10ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/gcc/testsuite/gcc.dg/gomp/pr51339.c

https://gitlab.com/sortix/gcc
C | 15 lines | 10 code | 2 blank | 3 comment | 0 complexity | e586b829c695fbfbbe72ba2d88105ef9 MD5 | raw file
 1/* PR c/51339 */
 2/* { dg-do compile } */
 3/* { dg-options "-fopenmp" } */
 4
 5char g[] = "g";
 6
 7void
 8foo (void)
 9{
10#pragma omp parallel sections firstprivate (g) lastprivate (g)
11  {
12  #pragma omp section
13    g[0] = 'h';
14  }
15}