Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/constexpr-conv2.C

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 }