blob: d07115e51ca1e457486b75cc67f5823335d3fe0a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// { 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-error "" } forward ref
struct Y
{
X foo ();
};
void baz (Y *p)
{
p->foo (); // { dg-error "" } incomplete
}
|