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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [implicit5.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
// Test that the default B copy constructor calls the deleted A
2
// copy constructor.
3
// { dg-options -std=c++0x }
4
 
5
struct A                        // { dg-message "declares a move" }
6
{
7
  A() = default;
8
  A(A&&) = default;
9
  template 
10
  A(const T& t) { t.i; }
11
};
12
 
13
struct B: A { };                // { dg-error "implicitly|use of deleted" }
14
 
15
int main()
16
{
17
  B b;
18
  B b2(b);                      // { dg-error "deleted" }
19
}

powered by: WebSVN 2.1.0

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