summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2017-07-19 11:09:59 -0400
committerDavid Malcolm <dmalcolm@redhat.com>2017-07-24 17:23:50 -0400
commit6a57e6faa24ceebeb5e39e1d770b048ef72f26b8 (patch)
tree29bedbb26df9fca7fc945651f6c59d6c3bceff9c
parentd23d4fa88f2fd8818bd0767afe13a3994d6ebe93 (diff)
downloadgcc-6a57e6faa24ceebeb5e39e1d770b048ef72f26b8.tar.gz
FIXME: DEFER: add gcc/testsuite/g++.dg/mismatching-const.C (WIP testcase, would need blt when done)
-rw-r--r--gcc/testsuite/g++.dg/mismatching-const.C20
1 files changed, 20 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/mismatching-const.C b/gcc/testsuite/g++.dg/mismatching-const.C
new file mode 100644
index 00000000000..422860fb012
--- /dev/null
+++ b/gcc/testsuite/g++.dg/mismatching-const.C
@@ -0,0 +1,20 @@
+/* { dg-options "-Wmissing-noreturn -fdiagnostics-show-caret -fblt" } */
+
+struct s1
+{
+ void method_1 () const;
+};
+
+void s1::method_1 ()
+{
+}
+
+
+struct s2
+{
+ void method_2 ();
+};
+
+void s2::method_2 () const
+{
+}