summaryrefslogtreecommitdiffstats
path: root/compilerplugins/clang/test/casttovoid.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'compilerplugins/clang/test/casttovoid.cxx')
-rw-r--r--compilerplugins/clang/test/casttovoid.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/compilerplugins/clang/test/casttovoid.cxx b/compilerplugins/clang/test/casttovoid.cxx
index c3b5eee17c96..3d8c22b49c7e 100644
--- a/compilerplugins/clang/test/casttovoid.cxx
+++ b/compilerplugins/clang/test/casttovoid.cxx
@@ -115,6 +115,8 @@ int main() {
int n8 = 0;
ASSERT(USE(USE(n8 == 0)));
(void) n8;
+ int volatile n9 = 0;
+ (void) n9;
return n1 // expected-note 8 {{first consumption is here [loplugin:casttovoid]}}
+ n2 // expected-note {{first consumption is here [loplugin:casttovoid]}}
+ n3;