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
Initial revision
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.rfg
/
00321_01-.C
1
// Here is a simple one. GCC correctly gives errors for this code when the
2
// - -pedantic-errors option is used, whereas g++ doesn't.
3
4
// Build don't link:
5
6
int (*p1)[3];
7
int (*p2)[5];
8
9
void
10
test ()
11
{
12
p1 == p2; // ERROR - comparison.*
13
p1 > p2; // ERROR - comparison.*
14
}