repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* cfgloopmanip.c (duplicate_loop_to_header_edge): Cleanup profile
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
sc1.C
blob
054a57a6cda6b28966d09cadccc2a5cfa7bd1b03
1
// { dg-do assemble }
2
// Origin: Mark Mitchell <mark@codesourcery.com>
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
}