]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/wave/test/testwave/testfiles/t_5_035.cpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / wave / test / testwave / testfiles / t_5_035.cpp
1 /*=============================================================================
2 Boost.Wave: A Standard compliant C++ preprocessor library
3 http://www.boost.org/
4
5 Copyright (c) 2001-2012 Hartmut Kaiser. Distributed under the Boost
6 Software License, Version 1.0. (See accompanying file
7 LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
8
9 The tests included in this file were initially taken from the mcpp V2.5
10 preprocessor validation suite and were modified to fit into the Boost.Wave
11 unit test requirements.
12 The original files of the mcpp preprocessor are distributed under the
13 license reproduced at the end of this file.
14 =============================================================================*/
15
16 // Tests translation limits.
17
18 #define ABCDEFGHIJKLMNOPQRSTUVWXYZabcde 0
19 #define ABCDEFGHIJKLMNOPQRSTUVWXYZabcd_ 1
20
21 // 37.1: Number of parameters in macro: at least 31.
22 #define GLUE31(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E) \
23 a##b##c##d##e##f##g##h##i##j##k##l##m##n##o##p##q##r##s##t##u##v##w##x##y##z##A##B##C##D##E
24
25 // 37.2: Number of arguments in macro call: at least 31.
26 //R #line 28 "t_5_035.cpp"
27 //R 0
28 GLUE31( A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R,
29 S, T, U, V, W, X, Y, Z, a, b, c, d, e)
30
31 // 37.3: Significant initial characters in an internal identifier or
32 // macro name: at least 31.
33 //R #line 34 "t_5_035.cpp"
34 ABCDEFGHIJKLMNOPQRSTUVWXYZabcd_ //R 1
35
36 // 37.4: Nested conditional inclusion: at least 8 levels.
37 //R #line 65 "t_5_035.cpp"
38 #define NEST 0
39 #ifdef A
40 #else
41 # ifdef B
42 # else
43 # ifdef C
44 # else
45 # ifdef D
46 # else
47 # ifdef E
48 # else
49 # ifdef F
50 # else
51 # ifdef G
52 # else
53 # ifdef H
54 # else
55 #undef NEST
56 #define NEST 1
57 # endif
58 # endif
59 # endif
60 # endif
61 # endif
62 # endif
63 # endif
64 #endif
65 NEST //R 1
66
67 // 37.5: Nested source file inclusion: at least 8 levels.
68 //R #line 70 "t_5_035.cpp"
69 #include "t_5_035_01.hpp"
70 NEST //R 8
71
72 // 37.6: Parenthesized expression: at least 32 levels.
73 //R #line 81 "t_5_035.cpp"
74 #if 0 + (1 - (2 + (3 - (4 + (5 - (6 + (7 - (8 + (9 - (10 + (11 - (12 + \
75 (13 - (14 + (15 - (16 + (17 - (18 + (19 - (20 + (21 - (22 + (23 - \
76 (24 + (25 - (26 + (27 - (28 + (29 - (30 + (31 - (32 + 0)))))))))) \
77 )))))))))))))))))))))) == 0
78 #undef NEST
79 #define NEST 32
80 #endif
81 NEST //R 32
82
83 // 37.7: Characters in a string (after concatenation): at least 509.
84 //R #line 86 "t_5_035.cpp"
85 //R "123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567"
86 "123456789012345678901234567890123456789012345678901234567890123456789\
87 0123456789012345678901234567890123456789012345678901234567890123456789\
88 0123456789012345678901234567890123456789012345678901234567890123456789\
89 0123456789012345678901234567890123456789012345678901234567890123456789\
90 0123456789012345678901234567890123456789012345678901234567890123456789\
91 0123456789012345678901234567890123456789012345678901234567890123456789\
92 0123456789012345678901234567890123456789012345678901234567890123456789\
93 012345678901234567"
94
95 // 37.8: Characters in a logical source line: at least 509.
96 //R #line 98 "t_5_035.cpp"
97 //R 123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567
98 123456789012345678901234567890123456789012345678901234567890123456789\
99 0123456789012345678901234567890123456789012345678901234567890123456789\
100 0123456789012345678901234567890123456789012345678901234567890123456789\
101 0123456789012345678901234567890123456789012345678901234567890123456789\
102 0123456789012345678901234567890123456789012345678901234567890123456789\
103 0123456789012345678901234567890123456789012345678901234567890123456789\
104 0123456789012345678901234567890123456789012345678901234567890123456789\
105 012345678901234567
106
107 // 37.9: Macro definitions: at least 1024.
108 //R #line 110 "t_5_035.cpp"
109 #include "t_5_035.hpp"
110 ZX //R 1
111
112 /*-
113 * Copyright (c) 1998, 2002-2005 Kiyoshi Matsui <kmatsui@t3.rim.or.jp>
114 * All rights reserved.
115 *
116 * Redistribution and use in source and binary forms, with or without
117 * modification, are permitted provided that the following conditions
118 * are met:
119 * 1. Redistributions of source code must retain the above copyright
120 * notice, this list of conditions and the following disclaimer.
121 * 2. Redistributions in binary form must reproduce the above copyright
122 * notice, this list of conditions and the following disclaimer in the
123 * documentation and/or other materials provided with the distribution.
124 *
125 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND
126 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
127 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
128 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE
129 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
130 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
131 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
132 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
133 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
134 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
135 * SUCH DAMAGE.
136 */
137