bump product version to 6.3.0.0.beta1
[LibreOffice.git] / compilerplugins / clang / test / finalprotected.cxx
blobc1556487444760316dc18e49792852c80920d39c
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 */
11 class S final {
12 protected:
13 void f(int f) { f1 = f; } // expected-error {{final class should not have protected members - convert them to private [loplugin:finalprotected]}}
14 int f1; // expected-error {{final class should not have protected members - convert them to private [loplugin:finalprotected]}}
15 public:
16 void g();
17 int g1;
18 private:
19 void h();
20 int h1;
23 class S2 {
24 protected:
25 void f(int f) { f1 = f; }
26 int f1;
27 public:
28 void g();
29 int g1;
30 private:
31 void h();
32 int h1;
35 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */