☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-conv2.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/constexpr-conv2.C
code
plain
raw
1
// { dg-do compile { target c++11 } }
2
3
template <int I> void f();
4
5
struct A { constexpr operator int() { return 24; } };
6
7
template <class T> constexpr void g(T t)
8
{
9
f<t>();
10
}
11
12
int main()
13
{
14
g(A());
15
}