Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
auto15.C
blob: ca5758ddf2e314ac443e8d8d8ef08c958c8deb28 [
file
] [
log
] [
blame
]
// { dg-do compile { target c++11 } }
template
<
typename
Fn
>
struct
function
;
template
<
typename
Result
,
typename
...
ArgTypes
>
struct
function
<
auto
(
ArgTypes
...)->
Result
>
{
};
int
main
()
{
function
<
auto
(
double
)->
int
>
y
;
return
0
;
}