From: Jonathan Wakely Date: Thu, 19 Apr 2018 17:00:37 +0000 (+0100) Subject: PR c++/85464 - missing location for -Wignored-qualifiers diagnostic X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f22723f93dd662c419e810e04390cf2319d4b29f;p=gcc.git PR c++/85464 - missing location for -Wignored-qualifiers diagnostic * g++.dg/diagnostic/pr85464.C: New. From-SVN: r259501 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index a00911dd172..62dec374218 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2018-04-19 Jonathan Wakely + + PR c++/85464 - missing location for -Wignored-qualifiers diagnostic + * g++.dg/diagnostic/pr85464.C: New. + 2018-04-19 H.J. Lu PR target/85397 diff --git a/gcc/testsuite/g++.dg/diagnostic/pr85464.C b/gcc/testsuite/g++.dg/diagnostic/pr85464.C new file mode 100644 index 00000000000..ee8b65185e5 --- /dev/null +++ b/gcc/testsuite/g++.dg/diagnostic/pr85464.C @@ -0,0 +1,5 @@ +// { dg-options "-Wignored-qualifiers" } +struct Test { + operator int const(); // { dg-warning "type qualifiers ignored" } + operator int const() const; // { dg-warning "type qualifiers ignored" } +};