1 /* { dg-additional-options "-foffload-options=nvptx-none=-misa=sm_35" { target { offload_target_nvptx } } } */
2
3 #pragma omp requires unified_shared_memory, unified_address, reverse_offload
4
5 /* The requires line is not active as there is none of:
6 declare target directives, device constructs or device routines.
7 Thus, this code is expected to work everywhere. */
8
9 int a[10];
10 extern void foo (void);
11
12 int
13 main (void)
14 {
15 for (int i = 0; i < 10; i++)
16 a[i] = 0;
17
18 return 0;
19 }