brintos

brintos / llvm-project-archived public Read only

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