blob: 87e55556128cf87b0d637169bc7aa751d133fe03 [file] [log] [blame]
// { dg-do assemble }
// Copyright (C) 2000 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 28 Nov 2000 <nathan@codesourcery.com>
// Bug 611. We ICEd when calling a member function returning an incomplete
// type by value.
struct X; // { dg-message "" } forward ref
struct Y
{
X foo ();
};
void baz (Y *p)
{
p->foo (); // { dg-error "" } incomplete
}