Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
nullptr28.C
blob: 05fbe57b19714f549600fcf5236574ed9edb8d38 [
file
] [
log
] [
blame
]
// { dg-do run { target c++11 } }
typedef
decltype
(
nullptr
)
nullptr_t
;
int
i
;
nullptr_t
n
;
const
nullptr_t
&
f
()
{
++
i
;
return
n
;
}
nullptr_t
g
()
{
return
f
();
}
int
main
()
{
g
();
if
(
i
!=
1
)
__builtin_abort
();
}