2022-04-18 15:02:25 -07:00

16 lines
295 B
C++

/*
* @@name: threadprivate.4
* @@type: C++
* @@compilable: no
* @@linkable: no
* @@expect: nothing
*/
struct T { T (); T (int); ~T (); int t; };
int f();
static T t1;
#pragma omp threadprivate(t1)
static T t2( 23 );
#pragma omp threadprivate(t2)
static T t3 = f();
#pragma omp threadprivate(t3)