18fbe78f6SDaniel Dunbar // RUN: %clang_cc1 -fsyntax-only -verify %s 2a5d5c749SDouglas Gregor class X; 3a5d5c749SDouglas Gregor 4a5d5c749SDouglas Gregor // C++ [temp.param]p4 5a5d5c749SDouglas Gregor typedef int INT; 6a5d5c749SDouglas Gregor enum E { enum1, enum2 }; 7a5d5c749SDouglas Gregor template<int N> struct A1; 8a5d5c749SDouglas Gregor template<INT N, INT M> struct A2; 9a5d5c749SDouglas Gregor template<enum E x, E y> struct A3; 10a5d5c749SDouglas Gregor template<int &X> struct A4; 11a5d5c749SDouglas Gregor template<int *Ptr> struct A5; 12a5d5c749SDouglas Gregor template<int (&f)(int, int)> struct A6; 13a5d5c749SDouglas Gregor template<int (*fp)(float, double)> struct A7; 14a5d5c749SDouglas Gregor template<int X::*pm> struct A8; 15a5d5c749SDouglas Gregor template<float (X::*pmf)(float, int)> struct A9; 16a5d5c749SDouglas Gregor template<typename T, T x> struct A10; 17a5d5c749SDouglas Gregor 18a5d5c749SDouglas Gregor template<float f> struct A11; // expected-error{{a non-type template parameter cannot have type 'float'}} 19a5d5c749SDouglas Gregor 20*a170cd62SEli Friedman template<void *Ptr> struct A12; 21*a170cd62SEli Friedman template<int (*IncompleteArrayPtr)[]> struct A13; 22