OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [overload-conv-1.C] - Blame information for rev 384

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 301 jeremybenn
// { dg-options "--std=c++0x" }
2
// { dg-do link }
3
 
4
struct S {};
5
 
6
struct T
7
{
8
  operator S() { return S(); }
9
};
10
 
11
struct U
12
{
13
  operator S&() { return *static_cast(0); }
14
};
15
 
16
void f(const S&);
17
void f(S&&) {}
18
 
19
void g(const S&) {}
20
void g(S&&);
21
 
22
int main()
23
{
24
  T t;
25
  f(t);
26
 
27
  U u;
28
  g(u);
29
}

powered by: WebSVN 2.1.0

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