1*67e74705SXin Li // RUN: %clang_cc1 -fsyntax-only -verify %s 2*67e74705SXin Li // expected-no-diagnostics 3*67e74705SXin Li 4*67e74705SXin Li // There is no semantic difference between class and typename in a 5*67e74705SXin Li // template-parameter. typename followed by an unqualified-id names a 6*67e74705SXin Li // template type parameter. 7*67e74705SXin Li template<class T> struct X; 8*67e74705SXin Li template<typename T> struct X; 9*67e74705SXin Li 10*67e74705SXin Li // typename followed by aqualified-id denotes the type in a non-type 11*67e74705SXin Li // parameter-declaration. 12*67e74705SXin Li template<typename T, typename T::type Value> struct Y0; 13*67e74705SXin Li template<typename T, typename X<T>::type Value> struct Y1; 14*67e74705SXin Li 15*67e74705SXin Li // A storage class shall not be specified in a template-parameter declaration. 16*67e74705SXin Li template<static int Value> struct Z; // FIXME: expect an error 17*67e74705SXin Li 18*67e74705SXin Li // Make sure that we properly disambiguate non-type template parameters that 19*67e74705SXin Li // start with 'class'. 20*67e74705SXin Li class X1 { }; 21*67e74705SXin Li template<class X1 *xptr> struct Y2 { }; 22*67e74705SXin Li 23*67e74705SXin Li // FIXME: add the example from p2 24