diff options
Diffstat (limited to 'test/CXX/temp/temp.decls/temp.variadic/p1.cpp')
-rw-r--r-- | test/CXX/temp/temp.decls/temp.variadic/p1.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CXX/temp/temp.decls/temp.variadic/p1.cpp b/test/CXX/temp/temp.decls/temp.variadic/p1.cpp new file mode 100644 index 0000000..02f4c59 --- /dev/null +++ b/test/CXX/temp/temp.decls/temp.variadic/p1.cpp @@ -0,0 +1,9 @@ +// RUN: %clang_cc1 -std=c++0x -fsyntax-only -verify %s + +template<class ...Types> struct Tuple; + +Tuple<> *t0; +Tuple<int> *t1; +Tuple<int, char> *t2a; +Tuple<int, float> *t2b = t2a; // expected-error{{cannot initialize a variable of type 'Tuple<int, float> *' with an lvalue of type 'Tuple<int, char> *'}} +Tuple<int, float, double> *t3; |