2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.oliva / ctor1.C
blobd8ad0c74da1b10b511e81852e353e1b74c9d5ff0
1 // { dg-do assemble  }
3 // Copyright (C) 1999 Free Software Foundation
5 // by Alexandre Oliva <oliva@dcc.unicamp.br>
6 // based on bug report by Harri Porten <porten@tu-harburg.de>
8 struct A {
9   A() : x; // { dg-error "" } missing body
12 struct B {
13   void m() {}
16 struct C {
17   // The error message below says it is within A::B::m()!
18   void n() {}