comparison gcc/testsuite/g++.dg/warn/Wcast-qual1.C @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children 1830386684a0
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
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 }