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 {
fT14   static int f() { return 0; }
15 };
16 
17 static const S s = { &T::f };
18 
main()19 int main()
20 {
21   return (*s.f)();
22 }
23