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
fix
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
init12.C
1
// Build don't run:
2
// Special g++ Options: -O3
3
// Origin: Mark Mitchell <mark@codesourcery.com>
4
5
typedef int (*fp)();
6
7
struct S
8
{
9
fp f;
10
};
11
12
struct T
13
{
14
static int f() {}
15
};
16
17
static const S s = { &T::f };
18
19
int main()
20
{
21
return (*s.f)();
22
}