* ubsan.c (ubsan_expand_null_ifn): Use _v1 suffixed type mismatch
[official-gcc.git] / gcc / testsuite / c-c++-common / pr69733.c
blob57ec1eccb9f5b6c61ae7bfeb775b79c9bded3ef6
1 /* { dg-do compile } */
2 /* { dg-options "-W -fdiagnostics-show-caret" } */
4 typedef const double cd;
5 double val;
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 "" } */
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 "" } */
19 cd val2() {return val;} /* { dg-warning "qualifiers ignored" } */
20 /* { dg-begin-multiline-output "" }
21 cd val2() {return val;}
23 { dg-end-multiline-output "" } */