PR c++/85464 - missing location for -Wignored-qualifiers diagnostic
authorJonathan Wakely <jwakely@redhat.com>
Thu, 19 Apr 2018 17:00:37 +0000 (18:00 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 19 Apr 2018 17:00:37 +0000 (18:00 +0100)
* g++.dg/diagnostic/pr85464.C: New.

From-SVN: r259501

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/diagnostic/pr85464.C [new file with mode: 0644]

index a00911d..62dec37 100644 (file)
@@ -1,3 +1,8 @@
+2018-04-19  Jonathan Wakely  <jwakely@redhat.com>
+
+       PR c++/85464 - missing location for -Wignored-qualifiers diagnostic
+       * g++.dg/diagnostic/pr85464.C: New.
+
 2018-04-19  H.J. Lu  <hongjiu.lu@intel.com>
 
        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 (file)
index 0000000..ee8b651
--- /dev/null
@@ -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" }
+};