2 // { dg-do compile { target c++11 } }
7 template <class T> void Foo(Clock* clock) {
8 const int now = clock->Now();
11 template void Foo<float>(Clock*);
13 template <class T> void Boo(int val) {
14 const int now1 = (double)(val);
15 const int now2 = const_cast<double>(val); // { dg-error "invalid" }
16 const int now3 = static_cast<double>(val);
17 const int now4 = reinterpret_cast<double>(val); // { dg-error "invalid" }
20 template void Boo<float>(int);