1 /* PR 55383 */ 2 /* { dg-do compile } */ 3 /* { dg-options "-Wcast-qual" } */ 4 5 void set(void*); 6 foo(int argc)7 int foo(int argc) 8 { 9 volatile double val; 10 set((void*)&val); /* { dg-warning "cast discards .volatile. qualifier" } */ 11 } 12