summaryrefslogtreecommitdiff
path: root/tests/testsrc/bad/constructor1.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-06-02 13:02:43 +0300
committerAndrei Karas <akaras@inbox.ru>2014-06-02 13:02:43 +0300
commitac179932fea5244a18547fffa5eb7f086afd3c08 (patch)
treeb5a5a20afebc82bb1d595f7d8f664c170336a958 /tests/testsrc/bad/constructor1.cpp
parent606bfb6b8c54fa786617f6cdf8da5679b1ecde64 (diff)
downloadmplint-ac179932fea5244a18547fffa5eb7f086afd3c08.tar.gz
mplint-ac179932fea5244a18547fffa5eb7f086afd3c08.tar.bz2
mplint-ac179932fea5244a18547fffa5eb7f086afd3c08.tar.xz
mplint-ac179932fea5244a18547fffa5eb7f086afd3c08.zip
Add test and code with errors.
Diffstat (limited to 'tests/testsrc/bad/constructor1.cpp')
-rw-r--r--tests/testsrc/bad/constructor1.cpp48
1 files changed, 48 insertions, 0 deletions
diff --git a/tests/testsrc/bad/constructor1.cpp b/tests/testsrc/bad/constructor1.cpp
new file mode 100644
index 0000000..4d19fe5
--- /dev/null
+++ b/tests/testsrc/bad/constructor1.cpp
@@ -0,0 +1,48 @@
+/*
+ * The ManaPlus Client
+ * Copyright (C) 2014 The ManaPlus Developers
+ *
+ * This file is part of The ManaPlus Client.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include "lintmanager.h"
+
+#include "debug.h"
+
+class Test1
+{
+ Test1::Test1()
+ {
+ }
+}
+
+struct Test2
+{
+ Test2::Test2():
+ data1(),
+ data2()
+ {
+ }
+}
+
+struct Test3
+{
+ Test3::Test3() :
+ data1(),
+ data2()
+ {
+ }
+}