Set num_threads to 50 on 32-bit hppa in two libgomp loop tests
[official-gcc.git] / libgomp / testsuite / libgomp.c / omp-loop03.c
blob9879981cf4a293f5764d57685e1002524ae807f7
1 #if defined(__hppa__) && !defined(__LP64__)
2 #define NUM_THREADS 50
3 #else
4 #define NUM_THREADS 64
5 #endif
7 extern void abort (void);
8 int a;
10 void
11 foo ()
13 int i;
14 a = 30;
15 #pragma omp barrier
16 #pragma omp for lastprivate (a)
17 for (i = 0; i < 1024; i++)
19 a = i;
21 if (a != 1023)
22 abort ();
25 int
26 main (void)
28 #pragma omp parallel num_threads (NUM_THREADS)
29 foo ();
31 return 0;