summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/abi/key1.C
blob: 6c038092641daa9de73f514f3bdebd6c5525dc17 (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
// On ARM EABI platforms, key methods may never be inline.
// { dg-do compile { target arm*-*-eabi* arm*-*-symbianelf* } }
// { dg-final { scan-assembler-not _ZTV1S } }
// { dg-final { scan-assembler-not _ZTV1T } }
// { dg-final { scan-assembler _ZTV1U } }

struct S {
  virtual void f();
};

inline void S::f() {}

struct T {
  virtual void g();
  virtual void h();
};

inline void T::g() {}

struct U {
  virtual void i();
  virtual void j();
};

inline void U::i() {}
void U::j () {}