comparison gcc/testsuite/g++.dg/warn/pr35711.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 35711
2 // { dg-do compile }
3 // { dg-options "-Wcast-qual" }
4
5 int* foo (volatile int *p)
6 {
7 return (int*)p; // { dg-warning "cast from type 'volatile int\\*' to type 'int\\*' casts away qualifiers" }
8 }