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