xfail scan-tree-dump-not throw in g++.dg/pr99966.C on hppa*64*-*-*
[official-gcc.git] / libgomp / testsuite / libgomp.c-c++-common / requires-6.c
bloba25b4d2dedd456898e7e477aa0e3d31a00875f89
1 /* { dg-additional-options "-foffload-options=nvptx-none=-misa=sm_35" { target { offload_target_nvptx } } } */
3 #pragma omp requires unified_shared_memory, unified_address, reverse_offload
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. */
9 int a[10];
10 extern void foo (void);
12 int
13 main (void)
15 for (int i = 0; i < 10; i++)
16 a[i] = 0;
18 return 0;