(root)/
gcc-13.2.0/
gcc/
testsuite/
c-c++-common/
gomp/
target-is-device-ptr-1.c
       1  /* { dg-do compile } */
       2  
       3  void
       4  foo ()
       5  {
       6    int *x;
       7  
       8    #pragma omp target is_device_ptr(x) is_device_ptr(x) /* { dg-error "'x' appears more than once in data clauses" } */
       9    ;
      10  
      11    #pragma omp target private(x) is_device_ptr(x) /*{ dg-error "'x' appears more than once in data clauses" } */
      12    ;
      13    #pragma omp target is_device_ptr(x) private(x) /*{ dg-error "'x' appears more than once in data clauses" } */
      14    ;
      15    #pragma omp target firstprivate(x) is_device_ptr(x) /*{ dg-error "'x' appears more than once in data clauses" } */
      16    ;
      17  
      18    #pragma omp target is_device_ptr(x) map(x) /* { dg-error "'x' appears both in data and map clauses" } */
      19    ;
      20    #pragma omp target map(x) is_device_ptr(x) /* { dg-error "'x' appears both in data and map clauses" } */
      21    ;
      22  }