repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
c++: robustify testcase [PR109752]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
auto-fn21.C
blob
4db1c86c8d90432abd76ce1938c249067297ab17
1
// N3638: decltype(auto) must stand alone
2
// { dg-do compile { target c++14 } }
3
4
void f();
5
decltype(auto) g1() { return &f; }
6
decltype(auto)* g2() { return f; } // { dg-error "decltype.auto" }