URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 301 |
Rev 384 |
// { dg-do compile }
|
// { dg-do compile }
|
// { dg-options "-finline -finline-functions" }
|
// { dg-options "-finline -finline-functions" }
|
// Contributed by Hans Buchmann
|
// Contributed by Hans Buchmann
|
// PR c++/14033: ICE while inlining a function with incomplete parameter
|
// PR c++/14033: ICE while inlining a function with incomplete parameter
|
|
|
struct A; // { dg-error "forward declaration" }
|
struct A; // { dg-error "forward declaration" }
|
void foo(A a) {} // { dg-error "incomplete" }
|
void foo(A a) {} // { dg-error "incomplete" }
|
struct A {};
|
struct A {};
|
|
|
void bar(void)
|
void bar(void)
|
{
|
{
|
foo(A());
|
foo(A());
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.