OSDN Git Service

* gcc.dg/20020201-1.c: Use cleanup-coverage_files.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.other / init12.C
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 }