Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
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
();
}