1 /* { dg-do compile } */
2 /* { dg-options "-W -fdiagnostics-show-caret" } */
3 /* { dg-additional-options "-Wno-volatile" { target c++ } } */
5 typedef const double cd
;
8 const double val0() {return val
;} /* { dg-warning "qualifiers ignored" } */
9 /* { dg-begin-multiline-output "" }
10 const double val0() {return val;}
12 { dg-end-multiline-output "" } */
14 volatile double val1() {return val
;} /* { dg-warning "qualifiers ignored" } */
15 /* { dg-begin-multiline-output "" }
16 volatile double val1() {return val;}
18 { dg-end-multiline-output "" } */
20 cd
val2() {return val
;} /* { dg-warning "qualifiers ignored" } */
21 /* { dg-begin-multiline-output "" }
22 cd val2() {return val;}
24 { dg-end-multiline-output "" } */