[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / OpenMP / template-specialization.cpp
blob714fbf4a20114cd7d7a18e77435e849d086cbc2e
1 // RUN: %clang_cc1 -verify -fopenmp -fsyntax-only %s
3 // expected-no-diagnostics
5 template <typename T>
6 struct z {
7 static void aj() {
8 T f;
9 #pragma omp target map(f)
14 template <typename> class ar {};
15 template <int> struct as {};
16 template class z<ar<as<4>>>;