☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
sc1.C
☽
☼
gcc/testsuite/g++.old-deja/g++.other/sc1.C
code
plain
raw
1
// { dg-do assemble }
2
// Origin: Mark Mitchell <
[email protected]
>
3
4
void f() {
5
int *i = 0;
6
const int *c = 0;
7
8
static_cast <const int *>(i);
9
static_cast <int *>(c); // { dg-error "" } casts away constness
10
}