Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/gomp/declare-target-2.C @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 84e7813d76e9 |
children |
line wrap: on
line source
// { dg-do compile } // { dg-options "-fopenmp" } #pragma omp declare target template <typename T> struct S { T a; }; template <typename T> struct U { T a; }; template <typename T> struct V { T a; }; template <typename T> struct W { T a; }; S<int> d; U<long> e[10]; extern V<char> f[5]; extern W<short> g[]; // { dg-error "'g' in declare target directive does not have mappable type" } #pragma omp end declare target