☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
implicit-copy.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/implicit-copy.C
code
plain
raw
1
// { dg-do compile { target c++11 } }
2
struct S
3
{
4
S();
5
private:
6
S(S const &&);
7
S & operator=(S const &&);
8
};
9
10
void f()
11
{
12
S a;
13
S b(a); // { dg-error "deleted" }
14
a = b; // { dg-error "deleted" }
15
}