PR c/64856
[official-gcc.git] / gcc / testsuite / gcc.dg / cast-qual-3.c
blob50dabab4748e978d3e860ad7ea7fa8f99d36e0e2
1 /* PR 55383 */
2 /* { dg-do compile } */
3 /* { dg-options "-Wcast-qual" } */
5 void set(void*);
7 int foo(int argc)
9 volatile double val;
10 set((void*)&val); /* { dg-warning "cast discards .volatile. qualifier" } */