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
[31/77] Use scalar_int_mode for move2add
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
pmem3.C
blob
1476266f622493fcdac098993517df529bc50059
1
// { dg-do run }
2
// Test that comparison of pointers to members does not complain about
3
// contravariance violation.
4
5
struct A { int i; };
6
struct B : public A { int j; int f (); };
7
int main ()
8
{
9
int A::*apm = &A::i;
10
int B::*bpm = apm;
11
return apm != bpm;
12
}