Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.other/crash38.C

raw
1 // { dg-do assemble }
2
3 // Copyright (C) 2000 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 28 Nov 2000 <[email protected]>
5
6 // Bug 611. We ICEd when calling a member function returning an incomplete
7 // type by value.
8
9 struct X; // { dg-message "" } forward ref
10
11 struct Y
12 {
13 X foo ();
14 };
15
16 void baz (Y *p)
17 {
18 p->foo (); // { dg-error "" } incomplete
19 }