p2.cpp revision 247baca66ca998de9c415c19019e199f4895e81c
1// RUN: clang-cc -fsyntax-only -verify %s 2 3// There is no semantic difference between class and typename in a 4// template-parameter. typename followed by an unqualified-id names a 5// template type parameter. 6template<class T> struct X; 7template<typename T> struct X; 8 9// typename followed by aqualified-id denotes the type in a non-type 10// parameter-declaration. 11// FIXME: template<typename T, typename T::type Value> struct Y; 12 13// A storage class shall not be specified in a template-parameter declaration. 14template<static int Value> struct Z; // FIXME: expect an error 15 16// FIXME: add the example from p2 17