blob: c64fb3d2fa0c2b63598d3e4caec781ec5fef86c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// { dg-do compile { target c++11 } }
template <int I> void f();
struct A { constexpr operator int() { return 24; } };
template <class T> constexpr void g(T t)
{
f<t>();
}
int main()
{
g(A());
}
|