OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Some raw string changes from N3077
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
nullptr08.C
1
// { dg-do compile }
2
// { dg-options "-std=c++0x" }
3
4
// Test conversion to bool
5
6
#define assert_true(b) do { char c[2 * bool(b) - 1]; } while(0)
7
8
void fun()
9
{
10
assert_true(nullptr ? false : true);
11
}