summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-03-16 16:58:23 +0300
committerAndrei Karas <akaras@inbox.ru>2016-03-16 16:58:23 +0300
commitd46b9aa882ff04ca43736eb4290cd100e54d2de2 (patch)
tree1181df80f1a2a84e4654173f73cba68ed855f802 /tests
parent971e3ef054af935eb2a0b8b11c7fb53a86dd00c7 (diff)
downloadmplint-d46b9aa882ff04ca43736eb4290cd100e54d2de2.tar.gz
mplint-d46b9aa882ff04ca43736eb4290cd100e54d2de2.tar.bz2
mplint-d46b9aa882ff04ca43736eb4290cd100e54d2de2.tar.xz
mplint-d46b9aa882ff04ca43736eb4290cd100e54d2de2.zip
Fix V006 warning if in constructor present attribute A_NONNULL.
Diffstat (limited to 'tests')
-rw-r--r--tests/testsrc/good/formatting.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/testsrc/good/formatting.cpp b/tests/testsrc/good/formatting.cpp
index 2819d56..6d4d47a 100644
--- a/tests/testsrc/good/formatting.cpp
+++ b/tests/testsrc/good/formatting.cpp
@@ -49,3 +49,18 @@ struct Test3 final
{
}
}
+
+struct ParticleTimer final
+{
+ ParticleTimer(Particle *const particle0,
+ const int endTime0) A_NONNULL(2) :
+ particle(particle0),
+ endTime(endTime0)
+ {
+ }
+
+ Particle *particle;
+ int endTime;
+ Particle *const particle;
+ const int endTime;
+};