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