summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/CXX/temp/temp.spec/temp.explicit/p3.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/CXX/temp/temp.spec/temp.explicit/p3.cpp b/clang/test/CXX/temp/temp.spec/temp.explicit/p3.cpp
index ff1438285e3..38ae7688a0b 100644
--- a/clang/test/CXX/temp/temp.spec/temp.explicit/p3.cpp
+++ b/clang/test/CXX/temp/temp.spec/temp.explicit/p3.cpp
@@ -72,3 +72,10 @@ namespace PR7979 {
template <typename T> int S<T>::i;
template <typename T> void S<T>::S2::h() {}
}
+
+namespace PR11599 {
+ template <typename STRING_TYPE> class BasicStringPiece; // expected-note {{template is declared here}}
+
+ extern template class BasicStringPiece<int>; // expected-error{{explicit instantiation of undefined template 'PR11599::BasicStringPiece<int>}}
+ template class BasicStringPiece<int>;
+}
OpenPOWER on IntegriCloud