1// RUN: %clang_cc1 -fsyntax-only -verify %s
2
3// A non-type template-parameter shall not be declared to have
4// floating point, class, or void type.
5struct A;
6
7template<double d> class X; // expected-error{{cannot have type}}
8template<double* pd> class Y; //OK
9template<double& rd> class Z; //OK
10
11template<A a> class X0; // expected-error{{cannot have type}}
12
13typedef void VOID;
14template<VOID a> class X01; // expected-error{{cannot have type}}
15
16