* c-c++-common/Wrestrict.c (test_strcpy_range): Revert latest change.
[official-gcc.git] / libgomp / testsuite / libgomp.c / target-30.c
bloba309f7d1a21ba827a5c458af7087963c277e132f
1 extern void abort (void);
3 #pragma omp declare target
4 int v = 6;
5 #pragma omp end declare target
7 int
8 main ()
10 #pragma omp target /* predetermined map(tofrom: v) */
11 v++;
12 #pragma omp target update from (v)
13 if (v != 7)
14 abort ();
15 #pragma omp parallel private (v) num_threads (1)
17 #pragma omp target /* predetermined firstprivate(v) */
18 v++;
20 #pragma omp target update from (v)
21 if (v != 7)
22 abort ();
23 return 0;