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
FSF GCC merge 02/23/03
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
p6311.C
blob
a0ef8c8c1fd11f8993923712a6d524e0cd2efa12
1
// prms-id: 6311
2
3
struct Foo {
4
int member;
5
} a = { 42 }, *ptra = &a;
6
7
int Foo::*pmd = &Foo::member;
8
9
int main() {
10
if (pmd == 0)
11
return 1;
12
if (a.*pmd != 42)
13
return 2;
14
if (ptra->*pmd != 42)
15
return 3;
16
}