Douglas Gregor | c6daf0b | 2011-02-17 06:52:25 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
2 | |||||
3 | struct X0 { }; | ||||
4 | struct X1 { }; | ||||
5 | |||||
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 *'}} | ||||
9 | } | ||||
10 | template void f0<X1>(); // expected-note{{instantiation of}} |