aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/inline16.C
blob: 95bfa7aacfce0b2e018bf25de3c7a9e2733cc20b (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
// { dg-do assemble  }
// { dg-options "-O1" }
// Origin: Jakub Jelinek <jakub@redhat.com>

struct foo {
  bool x;
  inline void a (unsigned char y);
  inline void b (void);
  virtual ~foo ();
};

foo::~foo ()
{
}

void foo::a (unsigned char y)
{
    x = ((y & 2) != 0);
}

void foo::b (void)
{
    a(0x07);
}