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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [defaulted20.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++/46497
2
// { dg-options -std=c++0x }
3
 
4
struct A {
5
  A(A&&) = default;
6
};
7
struct B {
8
  const A a;
9
  B(const B&) = default;
10
  B(B&&) = default;  // { dg-error "implicitly deleted|use of deleted" }
11
};
12
 
13
void g(B);                      // { dg-error "argument 1" }
14
B&& f();
15
 
16
int main()
17
{
18
  g(f());                       // { dg-error "deleted" }
19
}

powered by: WebSVN 2.1.0

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