blob: 7c1be1c4e94b8f920718918c7f23b54e9dc69b8e (
plain)
1
2
3
4
5
6
7
8
|
// PR 35711
// { dg-do compile }
// { dg-options "-Wcast-qual" }
int* foo (volatile int *p)
{
return (int*)p; // { dg-warning "cast from type 'int volatile\\*' to type 'int\\*' casts away qualifiers" }
}
|