bump product version to 6.4.0.3
[LibreOffice.git] / compilerplugins / clang / test / pointerbool.cxx
blob276a95ae1e0071b2ad3f76f35a553587c5b38937
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
10 #include <sal/types.h>
11 #include <com/sun/star/uno/Sequence.hxx>
13 #define FALSE 0
15 void func_ptr(int*);
16 void func_bool(bool); // expected-note {{method here [loplugin:pointerbool]}}
17 void func_salbool(sal_Bool);
19 void test1(int* p1)
21 func_ptr(p1);
22 func_bool(
23 p1); // expected-error {{possibly unwanted implicit conversion when calling bool param [loplugin:pointerbool]}}
24 // no warning expected
25 func_bool(FALSE);
26 func_salbool(sal_False);
27 func_salbool(sal_True);
28 css::uno::Sequence<sal_Bool> aSeq;
29 func_bool(aSeq[0]);
32 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */