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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [implicit10.C] - Blame information for rev 774

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

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/46103
2
// { dg-options -std=c++0x }
3
 
4
struct MoveOnly {
5
  MoveOnly(const MoveOnly&) = delete;
6
  MoveOnly(MoveOnly&&) { }
7
  MoveOnly() = default;
8
};
9
 
10
struct A {
11
  MoveOnly mo[1];
12
  A() = default;
13
  A(A&&) = default;
14
};
15
 
16
int main() {
17
  A a;
18
  A aa = static_cast(a);
19
}

powered by: WebSVN 2.1.0

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