expr.c (expand_expr_real_1): Just use do_store_flag.
[official-gcc.git] / libgomp / testsuite / libgomp.c / omp-parallel-for.c
blobc6631a0a7cb340c240b6bc166d1653b528e97e2f
1 extern void abort (void);
3 main()
5 int i, a;
7 a = 30;
9 #pragma omp parallel for firstprivate (a) lastprivate (a) \
10 num_threads (2) schedule(static)
11 for (i = 0; i < 10; i++)
12 a = a + i;
14 /* The thread that owns the last iteration will have computed
15 30 + 5 + 6 + 7 + 8 + 9 = 65. */
16 if (a != 65)
17 abort ();
19 return 0;