brintos

brintos / llvm-project-archived public Read only

0
0
Text · 333 B · daff9d1 Raw
10 lines · cpp
1// RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s2 3template<class ...Types> struct Tuple;4 5Tuple<> *t0;6Tuple<int> *t1;7Tuple<int, char> *t2a;8Tuple<int, float> *t2b = t2a; // expected-error{{cannot initialize a variable of type 'Tuple<int, float> *' with an lvalue of type 'Tuple<int, char> *'}}9Tuple<int, float, double> *t3;10