Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
nullptr08.C
blob: dbf16323343efdaf7b9de01e8fc1f406612dc430 [
file
] [
log
] [
blame
]
// { dg-do compile { target c++11 } }
// Test conversion to bool
#define
assert_true
(
b
)
do
{
char
c
[
2
*
bool
(
b
)
-
1
];
}
while
(
0
)
void
fun
()
{
assert_true
(
nullptr
?
false
:
true
);
decltype
(
nullptr
)
mynull
=
0
;
assert_true
(
mynull
?
false
:
true
);
}