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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [template/] [cast1.C] - Blame information for rev 327

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

Line No. Rev Author Line
1 301 jeremybenn
// { dg-do compile }
2
 
3
// Copyright (C) 2004 Free Software Foundation, Inc.
4
// Contributed by Nathan Sidwell 14 Dec 2004 
5
 
6
// PR 18949. Forgot to convert from reference.
7
// Origin: Volker Reichelt 
8
 
9
struct A
10
{
11
    void foo();
12
};
13
 
14
template void bar(A& a)
15
{
16
    const_cast(a).foo();
17
    static_cast(a).foo();
18
    reinterpret_cast(a).foo();
19
    ((A&)a).foo();
20
}
21
 
22
template void bar<0>(A& a);

powered by: WebSVN 2.1.0

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