summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/gomp/appendix-a/a.33.1.c
blob: 99c06da6a5dc305f2153c7b5950c75b983091fba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile } */
/* { dg-require-effective-target tls } */

#include <stdio.h>
float x, y;
#pragma omp threadprivate(x, y)
void
init (float a, float b)
{
#pragma omp single copyprivate(a,b,x,y)
  {
    scanf ("%f %f %f %f", &a, &b, &x, &y);
  }
}