diff options
author | dim <dim@FreeBSD.org> | 2011-02-20 13:06:31 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2011-02-20 13:06:31 +0000 |
commit | 39fcc9a984e2820e4ea0fa2ac4abd17d9f3a31df (patch) | |
tree | a9243275843fbeaa590afc07ee888e006b8d54ea /test/SemaTemplate/variadic-class-template-2.cpp | |
parent | 69b4eca4a4255ba43baa5c1d9bbdec3ec17f479e (diff) | |
download | FreeBSD-src-39fcc9a984e2820e4ea0fa2ac4abd17d9f3a31df.zip FreeBSD-src-39fcc9a984e2820e4ea0fa2ac4abd17d9f3a31df.tar.gz |
Vendor import of clang trunk r126079:
http://llvm.org/svn/llvm-project/cfe/trunk@126079
Diffstat (limited to 'test/SemaTemplate/variadic-class-template-2.cpp')
-rw-r--r-- | test/SemaTemplate/variadic-class-template-2.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/test/SemaTemplate/variadic-class-template-2.cpp b/test/SemaTemplate/variadic-class-template-2.cpp deleted file mode 100644 index 5099771..0000000 --- a/test/SemaTemplate/variadic-class-template-2.cpp +++ /dev/null @@ -1,19 +0,0 @@ -// RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++0x - -// Type parameters packs -template <typename ...> struct TS1 {}; // expected-note{{template parameter is declared here}} -template struct TS1<>; -template struct TS1<int>; -template struct TS1<int, int>; -template struct TS1<int, 10>; // expected-error{{template argument for template type parameter must be a type}} - -template <typename, typename ...> struct TS2 {}; // expected-note{{template is declared here}} -template struct TS2<>; // expected-error{{too few template arguments for class template 'TS2'}} -template struct TS2<int>; -template struct TS2<int, int>; - -template <typename = int, typename ...> struct TS3 {}; // expected-note{{template parameter is declared here}} -template struct TS3<>; // expected-note{{previous explicit instantiation is here}} -template struct TS3<int>; // expected-error{{duplicate explicit instantiation of 'TS3}} -template struct TS3<int, int>; -template struct TS3<10>; // expected-error{{template argument for template type parameter must be a type}} |