summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/inline2.C
blob: b6198be14a6845b4f3f4ab0638d7e2b703c04835 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-do assemble  }
// { dg-options "-O" }
// Bug: the lang-specific bits of the decl for g aren't being copied when
// inlining.

inline void f () {
  void g ();
}

void h() {
  f();				// causes compiler segfault - 
}