]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/testsuite/c-c++-common/goacc/host_data-6.c
Some OpenACC host_data cleanup
[thirdparty/gcc.git] / gcc / testsuite / c-c++-common / goacc / host_data-6.c
similarity index 84%
rename from libgomp/testsuite/libgomp.oacc-c-c++-common/host_data-6.c
rename to gcc/testsuite/c-c++-common/goacc/host_data-6.c
index a841488515efcd683ebb49ca743e0065214e2af2..8be7912e28012a0f9b80f54474d9c776eed76075 100644 (file)
@@ -1,8 +1,5 @@
 /* { dg-do compile } */
 
-#include <openacc.h>
-#include <stdlib.h>
-
 #define N 1024
 
 int main (int argc, char* argv[])
@@ -22,9 +19,6 @@ int main (int argc, char* argv[])
         xp = x; /* { dg-error "variable 'x' declared in enclosing 'host_data' region" } */
       }
     }
-
-    if (xp != acc_deviceptr (x))
-      abort ();
   }
 
   return 0;