mirror of
https://github.com/OpenMP/Examples.git
synced 2025-04-10 08:22:11 +01:00
16 lines
308 B
C++
16 lines
308 B
C++
/*
|
|
* @@name: threadprivate.4
|
|
* @@type: C++
|
|
* @@operation: view
|
|
* @@expect: unspecified
|
|
* @@version: pre_omp_3.0
|
|
*/
|
|
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)
|