repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
nullptr08.C
blob
dbf16323343efdaf7b9de01e8fc1f406612dc430
1
// { dg-do compile { target c++11 } }
2
3
// Test conversion to bool
4
5
#define assert_true(b) do { char c[2 * bool(b) - 1]; } while(0)
6
7
void fun()
8
{
9
assert_true(nullptr ? false : true);
10
decltype(nullptr) mynull = 0;
11
assert_true(mynull ? false : true);
12
}