Debian Codegraph @

gcc/testsuite/g++.dg/cpp1y/pr68396.C

raw
1 // { dg-do compile { target c++14 } }
2
3 template <unsigned>
4 auto f () {
5 return 2;
6 }
7
8 template <class>
9 class A {};
10
11 template <int... Ix>
12 auto g () {
13 A<decltype(f<Ix> ())...>();
14 return f<2> ();
15 }