1 // { dg-do compile { target c++11 } }
7 constexpr int bytesize(T t)
8 { return sizeof (t); } // OK
10 char buf[bytesize(0)]; // OK -- not C99 VLA
13 // function template 2
14 template<typename _Tp>
16 square(_Tp x) { return x; }
18 // Explicit specialization
20 constexpr unsigned long
21 square(unsigned long x) { return x * x; }
23 // Explicit instantiation
24 template int square(int);
29 template long square(long);