OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
PR c++/43680
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wcast-qual1.C
1
// PR c++/24667
2
// { dg-options "-Wcast-qual" }
3
4
int main(int, char**) {
5
const int foo[2] = {1,1};
6
((int*)foo)[0] = 0; // { dg-warning "cast" }
7
}