fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / idlc / test / const.idl
blobaeb638e22966ee8130a85d9dfd2b53ed4310aecc
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 module idlc
22 module test
24 const long l = 1;
25 const long add = 1 + 2;
26 const long sub = 3 - 2;
27 const hyper h = 123456789;
28 const float f7 = 3.4123;
29 const float f2 = 3.4123 + 10e-12;
30 const boolean bt = True;
31 const boolean bf = False;
32 const boolean and = bt & bf;
34 /// SHORT_MAX + 1;
35 const short shortMax = -0x8000;
36 /// LONG_MAX + 1;
37 const unsigned long longMax = 0x80000000;
40 constants USER
42 /// = 1
43 const long FLAG1 = 0x00000001;
44 /// = 2
45 const long FLAG2 = 0x00000002;
46 /// = 4
47 const long FLAG3 = 0x00000004;
48 /// = 8
49 const long FLAG4 = 0x00000008;
50 /// = 16
51 const long FLAG5 = 0x00000010;
52 /// = 0
53 const long FLAG6 = FLAG1 & FLAG2;
54 /// = 3
55 const long FLAG7 = FLAG1 | FLAG2;
56 /// = 2
57 const long FLAG8 = (FLAG1 | FLAG2) & FLAG2;
58 /// = 4
59 const long FLAG9 = FLAG1 << 2;
60 /// = 32
61 const long FLAG10 = (FLAG5 >> 1) << 2;
62 /// = 1
63 const long FLAG11 = 33 % 4;
64 /// = 4
65 const long FLAG12 = FLAG10 / 8;
71 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */