android: Reuse launcher icon in activities
[LibreOffice.git] / compilerplugins / clang / test / trivialconstructor.cxx
blobeed26f8bf305e8323eb004def9671fbe319db847
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 struct S1
12 // expected-error@+1 {{no need for explicit constructor decl [loplugin:trivialconstructor]}}
13 S1() {}
16 struct S2
18 S2() {}
19 S2(int) {}
22 struct S3
24 S3() {}
25 template <typename T> S3(T);
28 template <typename> struct S4
30 #if !defined _MSC_VER
31 // expected-error@+2 {{no need for explicit constructor decl [loplugin:trivialconstructor]}}
32 #endif
33 S4() {}
36 template <typename> struct S5
38 S5() {}
39 S5(int);
42 template <typename> struct S6
44 S6() {}
45 template <typename T> S6(T);
48 struct S7
50 S7(int = 0) {}
53 struct S8
55 template <typename T> S8(T = 0) {}
58 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */