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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do compile }
2
 
3
// Copyright (C) 2003 Free Software Foundation, Inc.
4
// Contributed by Nathan Sidwell 21 Mar 2003 
5
 
6
// PR 9898, DR 322. Conversion to reference type.
7
 
8
template  struct Ref {};
9
template  struct Val {};
10
 
11
struct Wrapper
12
{
13
  template  operator Ref & ();
14
  template  operator Val ();
15
};
16
 
17
void Foo (Wrapper l)
18
{
19
  static_cast  &> (l);
20
  static_cast  const &> (l);
21
  static_cast  > (l);
22
  static_cast  const &> (l);
23
  static_cast  > (l);
24
}

powered by: WebSVN 2.1.0

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