mirror of
https://github.com/OpenMP/Examples.git
synced 2025-04-07 23:22:11 +01:00
14 lines
244 B
C
14 lines
244 B
C
/*
|
|
* @@name: threadprivate.4c
|
|
* @@type: C++
|
|
* @@compilable: no
|
|
* @@linkable: no
|
|
* @@expect: nothing
|
|
*/
|
|
static T t1;
|
|
#pragma omp threadprivate(t1)
|
|
static T t2( 23 );
|
|
#pragma omp threadprivate(t2)
|
|
static T t3 = f();
|
|
#pragma omp threadprivate(t3)
|