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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [abi/] [mangle4.C] - Blame information for rev 825

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// Test mangling of type casts
2
// { dg-do compile }
3
 
4
class A {};
5
class B : public A {};
6
 
7
template class C {};
8
template class D {};
9
template class E {};
10
 
11
template void f(D &, C(b)> &) {} // { dg-error "" }
12
template void g(D &, E(b)> &) {} // { dg-error "" }
13
 
14
B b;
15
 
16
int main()
17
{
18
  C(&b)> c; // { dg-error "" }
19
  D<&b> d;
20
  E(&b)> e; // { dg-error "" }
21
  f(d, c);
22
  g(d, e);
23
}
24
 

powered by: WebSVN 2.1.0

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