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++.jason
/
parse12.C
blob
8988cebc8a4a37056c413e785cd7732ff06d4589
1
// { dg-do run }
2
// PRMS Id: 6821
3
4
struct A {
5
int operator()(int i) { return i; }
6
};
7
8
struct B {
9
A* p;
10
int f () { return (*p)(42); } // { dg-bogus "" }
11
};
12
13
int main ()
14
{
15
B b = { new A };
16
17
return b.f () != 42;
18
}