aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/inline23.C
blob: dcb443be1cc27ea82d0c8c4dd588081a56b484f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// { dg-do link  }

struct B
{
  virtual ~B() {}
};

struct A : public B
{
  ~A();
  void foo(void);
  void bar(void);
};

inline void A::foo(void)
{
  static int i;
  i++;
}

void A::bar()
{
  foo();
}

int main()
{
}