Sign in
gnu
/
gcc
/
a6d3012b274f38b20e2a57162106f625746af6c6
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
auto-fn12.C
blob: 224f2789bcd8f98811c13f553ac9e3660b9a5671 [
file
] [
log
] [
blame
]
// { dg-do compile { target c++14 } }
// { dg-final { scan-assembler "_ZN1AIiEcvDaEv" } }
template
<
class
T
>
struct
A
{
T t
;
operator
auto
()
{
return
t
+
1
;
}
};
int
main
()
{
int
i
=
A
<int>
{
42
};
return
(
i
!=
43
);
}