Sign in
chromium
/
chromiumos
/
third_party
/
gcc
/
refs/heads/factory-ryu-6486.B
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
auto-fn24.C
blob: dfff2029c1dab053ce8a4b395c43e52c447d0a91 [
file
] [
log
] [
blame
]
// PR c++/60314
// { dg-do compile { target c++1y } }
// { dg-options "-g" }
// fine
decltype
(
auto
)
qux
()
{
return
42
;
}
struct
foo
{
// also ICEs if not static
static
decltype
(
auto
)
bar
()
{
return
42
;
}
};