☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
auto-fn24.C
☽
☼
gcc/testsuite/g++.dg/cpp1y/auto-fn24.C
code
plain
raw
1
// PR c++/60314
2
// { dg-do compile { target c++14 } }
3
// { dg-options "-g" }
4
5
// fine
6
decltype(auto) qux() { return 42; }
7
8
struct foo
9
{
10
// also ICEs if not static
11
static decltype(auto) bar()
12
{ return 42; }
13
};