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