diff options
Diffstat (limited to 'test/CXX/temp/temp.spec/temp.expl.spec/p10.cpp')
-rw-r--r-- | test/CXX/temp/temp.spec/temp.expl.spec/p10.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CXX/temp/temp.spec/temp.expl.spec/p10.cpp b/test/CXX/temp/temp.spec/temp.expl.spec/p10.cpp new file mode 100644 index 000000000000..61f1710a6b9e --- /dev/null +++ b/test/CXX/temp/temp.spec/temp.expl.spec/p10.cpp @@ -0,0 +1,7 @@ +// RUN: clang-cc -fsyntax-only -verify %s + +template<class T> class X; +template<> class X<int>; // expected-note{{forward}} +X<int>* p; + +X<int> x; // expected-error{{incomplete type}} |