☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
defaulted17.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/defaulted17.C
code
plain
raw
1
// { dg-do compile { target c++11 } }
2
3
struct A // { dg-error "const|operator=" }
4
{
5
const int i;
6
};
7
8
int main()
9
{
10
A a = { 0 };
11
a = a; // { dg-error "deleted" }
12
}