PR middle-end/77674
[official-gcc.git] / gcc / testsuite / g++.dg / warn / pr35711.C
blob653269c0e7929534b06a3aeef4155c4838529221
1 // PR 35711
2 // { dg-do compile }
3 // { dg-options "-Wcast-qual" }
5 int* foo (volatile int *p)
7   return (int*)p; // { dg-warning "cast from type 'volatile int\\*' to type 'int\\*' casts away qualifiers" }