OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [other/] [crash-2.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do compile }
2
// { dg-options "-finline -finline-functions" }
3
// Contributed by Hans Buchmann 
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
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.