aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/init2.C
blob: c17427a764366114c4f7883ea2bfeee8e5e38f67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Special g++ Options: -O3

typedef int (*fp)();

struct S
{
  fp f;
};

static int f()
{
  return 0;
}

static const S s = { &f };

int main()
{
  return (*s.f)();
}