]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/g++.old-deja/g++.other/inline17.C
g++-dg.exp (g++-dg-test): Add "repo" option.
[thirdparty/gcc.git] / gcc / testsuite / g++.old-deja / g++.other / inline17.C
1 // { dg-do assemble }
2 // { dg-options "-O3" }
3 // Origin: Jakub Jelinek <jakub@redhat.com>
4
5 struct foo
6 {
7 char a;
8 foo ();
9 void bar ();
10 void baz (char c);
11 };
12
13 void foo::baz (char c)
14 {
15 if (c != a)
16 a = c;
17 }
18
19 void foo::bar ()
20 {
21 baz (1);
22 }