Sign in
gnu
/
gcc
/
4aef14b09557ce072f1269bd8a05fa2b1df0eda2
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
nullptr33.C
blob: 75c782ac8ffd1e0c1307b6e93479eca83ea902d5 [
file
] [
log
] [
blame
]
// PR c++/63757
// { dg-do compile { target c++11 } }
typedef
decltype
(
nullptr
)
nullptr_t
;
void
bar
(
void
*)
{}
struct
foo
{
operator
nullptr_t
()
{
return
nullptr
;
}
};
int
main
()
{
bar
(
foo
());
}