summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/inline13.C
blob: bf8e52e01d2fc9a9be98fd2fed76840994f4abff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// { dg-do assemble  }
// Origin: Alexandre Oliva <aoliva@cygnus.com>

struct foo {
  inline void bar();
  foo();
};

inline void foo::bar() {
  switch (0) {
  case 0:
    break;
  }
}

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