1 /* { dg-do compile } */
2 /* { dg-options "-W -fdiagnostics-show-caret" } */
4 typedef const double cd
;
7 const double val0() {return val
;} /* { dg-warning "qualifiers ignored" } */
8 /* { dg-begin-multiline-output "" }
9 const double val0() {return val;}
11 { dg-end-multiline-output "" } */
13 volatile double val1() {return val
;} /* { dg-warning "qualifiers ignored" } */
14 /* { dg-begin-multiline-output "" }
15 volatile double val1() {return val;}
17 { dg-end-multiline-output "" } */
19 cd
val2() {return val
;} /* { dg-warning "qualifiers ignored" } */
20 /* { dg-begin-multiline-output "" }
21 cd val2() {return val;}
23 { dg-end-multiline-output "" } */