bump product version to 6.3.0.0.beta1
[LibreOffice.git] / compilerplugins / clang / test / oslendian-1.cxx
blob7349239aa98d4046f45971c36b5fe334d53ec85b
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/config.h>
12 #include <osl/endian.h>
14 #if defined OSL_BIGENDIAN || defined OSL_LITENDIAN
15 #endif
16 #ifdef OSL_BIGENDIAN
17 #endif
18 #ifdef OSL_LITENDIAN
19 #endif
20 #ifndef OSL_BIGENDIAN
21 #endif
22 #ifndef OSL_LITENDIAN
23 #endif
25 #if !defined OSL_BIGENDIAN
26 #define OSL_BIGENDIAN
27 // expected-error@-1 {{macro 'OSL_BIGENDIAN' defined in addition to 'OSL_LITENDIAN' [loplugin:oslendian]}}
28 // expected-note@osl/endian.h:* {{conflicting macro definition is here [loplugin:oslendian]}}
29 #endif
31 #if !defined OSL_LITENDIAN
32 #define OSL_LITENDIAN
33 // expected-error@-1 {{macro 'OSL_LITENDIAN' defined in addition to 'OSL_BIGENDIAN' [loplugin:oslendian]}}
34 // expected-note@osl/endian.h:* {{conflicting macro definition is here [loplugin:oslendian]}}
35 #endif
37 #if defined OSL_BIGENDIAN
38 #undef OSL_BIGENDIAN
39 // expected-error@-1 {{macro 'OSL_BIGENDIAN' undefinition [loplugin:oslendian]}}
40 #endif
42 #if defined OSL_LITENDIAN
43 #undef OSL_LITENDIAN
44 // expected-error@-1 {{macro 'OSL_LITENDIAN' undefinition [loplugin:oslendian]}}
45 #endif
47 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */