Debian Codegraph @

gcc/testsuite/g++.dg/template/param5.C

raw
1 // Verify top-level cv-qualifiers are dropped when determining the substituted
2 // type of a non-type template parameter, as per [temp.param]/6.
3 // { dg-do compile { target c++11 } }
4
5 template<class T, T V> decltype(V)& f();
6 using type = decltype(f<const volatile int, 0>());
7 using type = int&;