summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.oliva/inline1.C
blob: f182b8344350f753579fe8f37cc6c5473bca7002 (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
25
26
27
28
29
30
// { dg-do assemble  }

// Copyright (C) 1999 Free Software Foundation

// by Alexandre Oliva <oliva@lsd.ic.unicamp.br>
// Derived from GNU lilypond.


struct foo {
  foo();
  foo(const foo&);
  ~foo();
};

struct bar {
  foo foo_member;
  bar();
  bar(const bar&);
  // ~bar();
};

struct baz {
  void error (bar s);
};

void fail() __attribute__((noreturn));

void baz::error (bar s) {
  fail();
}