2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / init12.C
blob9b7242699ee1effe7cdc3bb9fb1f21734c8ae86e
1 // { dg-do link  }
2 // { dg-options "-O3" }
3 // Origin: Mark Mitchell <mark@codesourcery.com>
5 typedef int (*fp)();
6  
7 struct S
9   fp f;
12 struct T
14   static int f() { return 0; }
17 static const S s = { &T::f };
19 int main()
21   return (*s.f)();