aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/gomp/pr91110.C
blob: 332c99a13fcef548b4d8e033e7f3b08f188ac9a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/91110
// { dg-do compile }

void
foo ()
{
  X b[2];	// { dg-error "'X' was not declared in this scope" }
  b[0] = 1;	// { dg-error "'b' was not declared in this scope" }
  #pragma omp target map(to: b)	// { dg-error "'b' does not have a mappable type in 'map' clause" }
  ;
}