Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
gcc.dg
/
cast-qual-3.c
blob: 50dabab4748e978d3e860ad7ea7fa8f99d36e0e2 [
file
] [
log
] [
blame
]
/* PR 55383 */
/* { dg-do compile } */
/* { dg-options "-Wcast-qual" } */
void
set
(
void
*);
int
foo
(
int
argc
)
{
volatile
double
val
;
set
((
void
*)&
val
);
/* { dg-warning "cast discards .volatile. qualifier" } */
}