repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Dead
[official-gcc.git]
/
gomp-20050608-branch
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
ptrmem4.C
blob
6df10a99fe2320bd0f0449ec3dd226f195432b9f
1
// { dg-do run }
2
// Test to make sure g++ can handle target types that aren't identical
3
// with pointers to members.
4
5
struct A { int i; };
6
struct B : public A { };
7
8
int main ()
9
{
10
int A::*p = &A::i;
11
const int B::*q = &A::i;
12
return p != q;
13
}