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
Formatting fixes.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
null2.C
1
// { dg-do run }
2
// Based on a testcase by Eric Dumazet <Eric.Dumazet@COSMOSBAY.COM>
3
4
extern "C" void abort ();
5
6
const char * const foo = ""; // foo is not NULL
7
8
int main() {
9
if ((foo == 0) ? 0 : foo) // so this should evaluate to `foo'
10
return 0;
11
else
12
abort();
13
}