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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do compile }
2
 
3
typedef void (*fptr)();
4
fptr zeroptr = 0;
5
template struct foo { };
6
template struct foo { };
7
// { dg-error "not a valid template argument" "not valid" { target *-*-* } 6 }
8
// { dg-error "must be the address" "must be the address " { target *-*-* } 6 }
9
 
10
// The rest is needed to trigger the ICE in 4.0 to 4.3:
11
void f() { }
12
foo m_foo;

powered by: WebSVN 2.1.0

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