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

22 lines
182 B
C

// { dg-do run }
// { dg-options "-O3" }
typedef int (*fp)();
struct S
{
fp f;
};
static int f()
{
return 0;
}
static const S s = { &f };
int main()
{
return (*s.f)();
}