]> git.ipfire.org Git - thirdparty/gcc.git/blob - libgomp/testsuite/libgomp.oacc-c-c++-common/declare-5.c
c-pragma.c (oacc_pragmas): Add entry for declare directive.
[thirdparty/gcc.git] / libgomp / testsuite / libgomp.oacc-c-c++-common / declare-5.c
1 /* { dg-do run { target openacc_nvidia_accel_selected } } */
2
3 #include <stdio.h>
4
5 int
6 main (int argc, char **argv)
7 {
8 int a[8] __attribute__((unused));
9
10 fprintf (stderr, "CheCKpOInT\n");
11 #pragma acc declare present (a)
12 }
13
14 /* { dg-output "CheCKpOInT" } */
15 /* { dg-shouldfail "" } */