Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.other/init2.C

raw
1 // { dg-do run }
2 // { dg-options "-O3" }
3
4 typedef int (*fp)();
5
6 struct S
7 {
8 fp f;
9 };
10
11 static int f()
12 {
13 return 0;
14 }
15
16 static const S s = { &f };
17
18 int main()
19 {
20 return (*s.f)();
21 }