summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/debug3.C
blob: 1b5507b1657221b5aa18fe5f1199ec8a54900d8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// { dg-do assemble  }
// { dg-options "-O2" }
// Origin: Mark Mitchell <mark@codesourcery.com>

struct S
{
  ~S();
};

inline void f()
{
  static S s;
}

typedef void (*fn_t)();

fn_t g()
{
  return &f;
}