summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/test/doubleconvert.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'compilerplugins/clang/test/doubleconvert.cxx')
-rw-r--r--compilerplugins/clang/test/doubleconvert.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/compilerplugins/clang/test/doubleconvert.cxx b/compilerplugins/clang/test/doubleconvert.cxx
index d0fd8b787bdb..17bd49aa4f6f 100644
--- a/compilerplugins/clang/test/doubleconvert.cxx
+++ b/compilerplugins/clang/test/doubleconvert.cxx
@@ -17,6 +17,9 @@ int main()
col2 = sal_Int32(
col1); // expected-error@-1 {{redundant double conversion [loplugin:doubleconvert]}}
(void)col2;
+ // expected-error@+1 {{redundant double conversion [loplugin:doubleconvert]}}
+ Color col3 = sal_Int32(Color());
+ (void)col3;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */