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
* g++.old-deja/g++.other/eh4.C: Fix typo.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
ptrmem4.C
1
// Test to make sure g++ can handle target types that aren't identical
2
// with pointers to members.
3
4
struct A { int i; };
5
struct B : public A { };
6
7
int main ()
8
{
9
int A::*p = &A::i;
10
const int B::*q = &A::i;
11
return p != q;
12
}