1 // RUN: %clang_cc1 -fsyntax-only -verify %s 2 3 class A1 {}; 4 class B1; // expected-note{{'B1' is not defined, but forward declared here; conversion would be valid if it was derived from 'A1'}} 5 B1 *b1; 6 A1 *a1 = b1; // expected-error{{cannot initialize a variable of type 'A1 *' with an lvalue of type 'B1 *'}} 7 8 template <class C> class A2 {}; 9 template <class C> class B2; 10 B2<int> *b2; 11 A2<int> *a2 = b2; // expected-error{{cannot initialize a variable of type 'A2<int> *' with an lvalue of type 'B2<int> *'}} 12