xfail scan-tree-dump-not throw in g++.dg/pr99966.C on hppa*64*-*-*
[official-gcc.git] / libgomp / testsuite / libgomp.c-c++-common / pr96390.c
blobb89f934811a5fb0eb9363632a1f13ee8a5cbbf82
1 /* { dg-additional-options "-O0 -fdump-tree-omplower" } */
2 /* { dg-additional-options "-foffload=-Wa,--verify" { target offload_target_nvptx } } */
3 /* { dg-require-alias "" } */
4 /* { dg-xfail-if "PR 97102/PR 97106 - .alias not (yet) supported for nvptx" { offload_target_nvptx } } */
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
10 int foo () { return 42; }
11 int bar () __attribute__((alias ("foo")));
12 int baz () __attribute__((alias ("bar")));
14 #ifdef __cplusplus
16 #endif
19 int
20 main ()
22 int n;
23 #pragma omp target map(from:n)
24 n = baz ();
25 if (n != 42)
26 __builtin_abort ();
28 /* { dg-final { scan-tree-dump-times "__attribute__..omp declare target" 1 "omplower" } } */