summaryrefslogtreecommitdiff
path: root/tests/testsrc/good/constructor1.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-01-17 23:01:06 +0300
committerAndrei Karas <akaras@inbox.ru>2017-01-17 23:02:20 +0300
commitf06a985adff1ec54e7a6c3753d8dfd077b5dd37d (patch)
tree3cdf5fbc98b47c51205e950110d9a6cd31096e23 /tests/testsrc/good/constructor1.h
parent1a8ab0421d23125830ba3aac4d8b7910c257be16 (diff)
downloadmplint-f06a985adff1ec54e7a6c3753d8dfd077b5dd37d.tar.gz
mplint-f06a985adff1ec54e7a6c3753d8dfd077b5dd37d.tar.bz2
mplint-f06a985adff1ec54e7a6c3753d8dfd077b5dd37d.tar.xz
mplint-f06a985adff1ec54e7a6c3753d8dfd077b5dd37d.zip
Add checks for A_DEFAULT_COPY / A_DELETE_COPY.
Also fix error in detection for final/notfinal classes.
Diffstat (limited to 'tests/testsrc/good/constructor1.h')
-rw-r--r--tests/testsrc/good/constructor1.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/testsrc/good/constructor1.h b/tests/testsrc/good/constructor1.h
index 4e5a06d..d33fadb 100644
--- a/tests/testsrc/good/constructor1.h
+++ b/tests/testsrc/good/constructor1.h
@@ -22,6 +22,8 @@
class Test1 final
{
+ A_DELETE_COPY(Test1)
+
Test1::Test1()
{
}
@@ -29,6 +31,8 @@ class Test1 final
struct Test2 final
{
+ A_DEFAULT_COPY(Test2)
+
Test2::Test2() :
data1(),
data2()