Debian Codegraph @

gcc/testsuite/g++.dg/cpp1y/auto-fn24.C

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 };