OSDN Git Service

cp:
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / other / crash-2.C
1 // { dg-do compile }
2 // { dg-options "-finline -finline-functions" }
3 // Contributed by Hans Buchmann <hans dot buchmann at fhso dot ch>
4 // PR c++/14033: ICE while inlining a function with incomplete parameter
5
6 struct A;           // { dg-error "forward declaration" }
7 void foo(A a) {}    // { dg-error "incomplete" }
8 struct A {};
9
10 void bar(void)
11 {
12  foo(A());
13 }