xref: /aosp_15_r20/external/clang/test/CXX/temp/temp.decls/temp.variadic/p1.cpp (revision 67e74705e28f6214e480b399dd47ea732279e315)
1 // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s
2 
3 template<class ...Types> struct Tuple;
4 
5 Tuple<> *t0;
6 Tuple<int> *t1;
7 Tuple<int, char> *t2a;
8 Tuple<int, float> *t2b = t2a; // expected-error{{cannot initialize a variable of type 'Tuple<int, float> *' with an lvalue of type 'Tuple<int, char> *'}}
9 Tuple<int, float, double> *t3;
10