Debian Codegraph @

clang/test/SemaOpenMP/openmp-begin-declare-variant_template.cpp

raw
1 // RUN: %clang_cc1 -triple x86_64 -fopenmp -verify %s
2
3 // FIXME: Is this supposed to work?
4
5 #pragma omp begin declare variant match(implementation={extension(allow_templates)})
6 template <class T> void f(T) {}
7 // expected-note@-1 {{explicit instantiation refers here}}
8 #pragma end
9 template <int> struct A {};
10 template <bool B> A<B> f() = delete;
11 template void f<float>(float);
12 // expected-error@-1 {{explicit instantiation of undefined function template 'f'}}