1// RUN: %clang_cc1 -fsyntax-only -verify %s 2 3struct X0 { }; 4struct X1 { }; 5 6template<typename T> 7void 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 *'}} 9} 10template void f0<X1>(); // expected-note{{instantiation of}} 11