Fix test failures for enum-alias-{1,2,3} on arm-eabi [PR117419]
[official-gcc.git] / gcc / testsuite / c-c++-common / pr69733.c
blobab70f49009c3832e729db929f0b47a73f68612cc
1 /* { dg-do compile } */
2 /* { dg-options "-W -fdiagnostics-show-caret" } */
3 /* { dg-additional-options "-Wno-volatile" { target c++ } } */
5 typedef const double cd;
6 double val;
8 const double val0() {return val;} /* { dg-warning "qualifiers ignored" } */
9 /* { dg-begin-multiline-output "" }
10 const double val0() {return val;}
11 ^~~~~
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;}
17 ^~~~~~~~
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 "" } */