Handle symbol visibility/locality for PIE/PIC
[official-gcc.git] / gcc / testsuite / c-c++-common / tm / omp.c
blobb664a6f112363cb64bdfe3e6f536d1ca385f9c5e
1 /* { dg-do compile } */
2 /* { dg-options "-fgnu-tm -fopenmp" } */
3 /* { dg-require-effective-target pthread } */
5 __attribute__ ((transaction_pure))
6 unsigned long rdtsc();
8 typedef struct ENTER_EXIT_TIMES
10 unsigned long enter;
11 } times_t;
13 void ParClassify()
15 void * Parent;
16 #pragma omp parallel private(Parent)
18 times_t inside;
19 __transaction_atomic {
20 inside.enter = rdtsc();