From d46b9aa882ff04ca43736eb4290cd100e54d2de2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 16 Mar 2016 16:58:23 +0300 Subject: Fix V006 warning if in constructor present attribute A_NONNULL. --- tests/testsrc/good/formatting.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'tests') 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; +}; -- cgit v1.2.3-70-g09d2