mirror of
https://github.com/autc04/Retro68.git
synced 2025-03-02 10:30:00 +00:00
29 lines
674 B
C
29 lines
674 B
C
/* { dg-additional-options "-O0 -fdump-tree-omplower" } */
|
|
/* { dg-additional-options "-foffload=-Wa,--verify" { target offload_target_nvptx } } */
|
|
/* { dg-require-alias "" } */
|
|
/* { dg-xfail-if "PR 97102/PR 97106 - .alias not (yet) supported for nvptx" { offload_target_nvptx } } */
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
int foo () { return 42; }
|
|
int bar () __attribute__((alias ("foo")));
|
|
int baz () __attribute__((alias ("bar")));
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
|
|
int
|
|
main ()
|
|
{
|
|
int n;
|
|
#pragma omp target map(from:n)
|
|
n = baz ();
|
|
if (n != 42)
|
|
__builtin_abort ();
|
|
}
|
|
/* { dg-final { scan-tree-dump-times "__attribute__..omp declare target" 1 "omplower" } } */
|