2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / crash38.C
blobd07115e51ca1e457486b75cc67f5823335d3fe0a
1 // { dg-do assemble  }
3 // Copyright (C) 2000 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 28 Nov 2000 <nathan@codesourcery.com>
6 // Bug 611. We ICEd when calling a member function returning an incomplete
7 // type by value.
9 struct X;   // { dg-error "" } forward ref
11 struct Y
13   X foo ();
16 void baz (Y *p)
18   p->foo ();    // { dg-error "" } incomplete