1 /* { dg-do compile } */
2 /* { dg-options "-W -fdiagnostics-show-caret" } */
3 
4 typedef const double cd;
5 double val;
6 
val0()7 const double val0() {return val;} /* { dg-warning "qualifiers ignored" } */
8 /* { dg-begin-multiline-output "" }
9  const double val0() {return val;}
10  ^~~~~
11 { dg-end-multiline-output "" } */
12 
val1()13 volatile double val1() {return val;} /* { dg-warning "qualifiers ignored" } */
14 /* { dg-begin-multiline-output "" }
15  volatile double val1() {return val;}
16  ^~~~~~~~
17 { dg-end-multiline-output "" } */
18 
val2()19 cd val2() {return val;} /* { dg-warning "qualifiers ignored" } */
20 /* { dg-begin-multiline-output "" }
21  cd val2() {return val;}
22  ^~
23 { dg-end-multiline-output "" } */
24 
val3()25 __seg_fs int val3() {return val;} /* { dg-warning "qualifiers ignored" } */
26 /* { dg-begin-multiline-output "" }
27  __seg_fs int val3() {return val;}
28  ^~~~~~~~
29 { dg-end-multiline-output "" } */
30 
31