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
Add NIOS2 support. Code from SourceyG++.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
parse12.C
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
}