Mercurial > hg > CbC > CbC_gcc
diff gcc/testsuite/g++.dg/cpp1y/auto-fn15.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line diff
--- a/gcc/testsuite/g++.dg/cpp1y/auto-fn15.C Fri Oct 27 22:46:09 2017 +0900 +++ b/gcc/testsuite/g++.dg/cpp1y/auto-fn15.C Thu Oct 25 07:37:49 2018 +0900 @@ -22,6 +22,8 @@ decltype(auto) h5(T t) { return t.i; } template <class T> decltype(auto) h6(T t) { return (t.i); } +template <class T> +decltype(auto) h7(T t) { return (i); } int main() { @@ -48,4 +50,5 @@ same_type<decltype(h4()),int&>(); same_type<decltype(h5(a)),int>(); same_type<decltype(h6(a)),int&>(); + same_type<decltype(h7(a)),int&>(); }