summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/inline17.C
blob: b7890e7ef8ff863300d0d2d170d7b4dde5b3d4aa (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 "-O3" }
// Origin: Jakub Jelinek <jakub@redhat.com>

struct foo
{
  char a;
  foo ();
  void bar ();
  void baz (char c);
};

void foo::baz (char c)
{
  if (c != a)
    a = c;
}

void foo::bar ()
{
  baz (1);
}