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
2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
init12.C
blob
9b7242699ee1effe7cdc3bb9fb1f21734c8ae86e
1
// { dg-do link }
2
// { dg-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() { return 0; }
15
};
16
17
static const S s = { &T::f };
18
19
int main()
20
{
21
return (*s.f)();
22
}