aboutsummaryrefslogtreecommitdiff
path: root/libgomp/testsuite/libgomp.oacc-c-c++-common/declare-5.c
blob: 229e96c08a0d96ae706ecf0b45b5fba4afd7a199 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-skip-if "" { *-*-* } { "-DACC_MEM_SHARED=1" } } */

#include <stdio.h>

int
main (int argc, char **argv)
{
  int a[8] __attribute__((unused));

  fprintf (stderr, "CheCKpOInT\n");
#pragma acc declare present (a)
}

/* { dg-output "CheCKpOInT" } */
/* { dg-shouldfail "" } */