When printing a qualified type, look through a substituted template
[clang.git] / test / SemaCXX / type-formatting.cpp
blob3fe9278c40b8883a92e3b683a989ab9c4a5191d3
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 struct X0 { };
4 struct X1 { };
6 template<typename T>
7 void f0() {
8 const T *t = (const X0*)0; // expected-error{{cannot initialize a variable of type 'const X1 *' with an rvalue of type 'const X0 *'}}
10 template void f0<X1>(); // expected-note{{instantiation of}}