Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/g++.dg/cpp0x/trailing13.C @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 // PR c++/69139 | |
2 // { dg-do compile { target c++11 } } | |
3 | |
4 struct X { | |
5 auto get(int) const & noexcept -> int { return {}; } | |
6 auto get(int) && throw () -> long { return {}; } | |
7 }; | |
8 | |
9 template <class R> auto f(auto (X::*)(int) const & -> R) -> R {} | |
10 | |
11 using I = decltype(f(&X::get)); | |
12 using I = int; |