From 6a57e6faa24ceebeb5e39e1d770b048ef72f26b8 Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Wed, 19 Jul 2017 11:09:59 -0400 Subject: FIXME: DEFER: add gcc/testsuite/g++.dg/mismatching-const.C (WIP testcase, would need blt when done) --- gcc/testsuite/g++.dg/mismatching-const.C | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 gcc/testsuite/g++.dg/mismatching-const.C 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 +{ +} -- cgit v1.2.1