Compile fixes
[ACE_TAO.git] / ACE / tests / Compiler_Features_33_Test.cpp
blob95eb529ffd2621606edd5b344bf5406046fb160f
1 /**
2 * This program checks if the compiler doesn't have a certain bug
3 * that we encountered.
4 */
6 #include "test_config.h"
8 int
9 run_main (int, ACE_TCHAR *[])
11 ACE_START_TEST (ACE_TEXT("Compiler_Features_33_Test"));
13 int retval = 1;
14 char _tao_discriminant = '\x0';
16 switch (_tao_discriminant)
18 case '\x0':
19 case '\x1':
20 case '\x2':
21 case '\x3':
22 case '\x4':
23 case '\x5':
24 case '\x6':
25 case '\a':
26 case '\b':
27 case '\t':
28 case '\n':
29 case '\v':
30 case '\f':
31 case '\r':
32 case '\xe':
33 case '\xf':
34 case '\x10':
35 case '\x11':
36 case '\x12':
37 case '\x13':
38 case '\x14':
39 case '\x15':
40 case '\x16':
41 case '\x17':
42 case '\x18':
43 case '\x19':
44 case '\x1a':
45 case '\x1b':
46 case '\x1c':
47 case '\x1d':
48 case '\x1e':
49 case '\x1f':
50 case ' ':
51 case '!':
52 case '"':
53 case '#':
54 case '$':
55 case '%':
56 case '&':
57 case '\'':
58 case '(':
59 case ')':
60 case '*':
61 case '+':
62 case ',':
63 case '-':
64 case '.':
65 case '/':
66 case '0':
67 case '1':
68 case '2':
69 case '3':
70 case '4':
71 case '5':
72 case '6':
73 case '7':
74 case '8':
75 case '9':
76 case ':':
77 case ';':
78 case '<':
79 case '=':
80 case '>':
81 case '?':
82 case '@':
83 case 'A':
84 case 'B':
85 case 'C':
86 case 'D':
87 case 'E':
88 case 'F':
89 case 'G':
90 case 'H':
91 case 'I':
92 case 'J':
93 case 'K':
94 case 'L':
95 case 'M':
96 case 'N':
97 case 'O':
98 case 'P':
99 case 'Q':
100 case 'R':
101 case 'S':
102 case 'T':
103 case 'U':
104 case 'V':
105 case 'W':
106 case 'X':
107 case 'Y':
108 case 'Z':
109 case '[':
110 case '\\':
111 case ']':
112 case '^':
113 case '_':
114 case '`':
115 case 'a':
116 case 'b':
117 case 'c':
118 case 'd':
119 case 'e':
120 case 'f':
121 case 'g':
122 case 'h':
123 case 'i':
124 case 'j':
125 case 'k':
126 case 'l':
127 case 'm':
128 case 'n':
129 case 'o':
130 case 'p':
131 case 'q':
132 case 'r':
133 case 's':
134 case 't':
135 case 'u':
136 case 'v':
137 case 'w':
138 case 'x':
139 case 'y':
140 case 'z':
141 case '{':
142 case '|':
143 case '}':
144 case '~':
145 case '\x7f':
146 case '\x80':
147 case '\x81':
148 case '\x82':
149 case '\x83':
150 case '\x84':
151 case '\x85':
152 case '\x86':
153 case '\x87':
154 case '\x88':
155 case '\x89':
156 case '\x8a':
157 case '\x8b':
158 case '\x8c':
159 case '\x8d':
160 case '\x8e':
161 case '\x8f':
162 case '\x90':
163 case '\x91':
164 case '\x92':
165 case '\x93':
166 case '\x94':
167 case '\x95':
168 case '\x96':
169 case '\x97':
170 case '\x98':
171 case '\x99':
172 case '\x9a':
173 case '\x9b':
174 case '\x9c':
175 case '\x9d':
176 case '\x9e':
177 case '\x9f':
178 case '\xa0':
179 case '\xa1':
180 case '\xa2':
181 case '\xa3':
182 case '\xa4':
183 case '\xa5':
184 case '\xa6':
185 case '\xa7':
186 case '\xa8':
187 case '\xa9':
188 case '\xaa':
189 case '\xab':
190 case '\xac':
191 case '\xad':
192 case '\xae':
193 case '\xaf':
194 case '\xb0':
195 case '\xb1':
196 case '\xb2':
197 case '\xb3':
198 case '\xb4':
199 case '\xb5':
200 case '\xb6':
201 case '\xb7':
202 case '\xb8':
203 case '\xb9':
204 case '\xba':
205 case '\xbb':
206 case '\xbc':
207 case '\xbd':
208 case '\xbe':
209 case '\xbf':
210 case '\xc0':
211 case '\xc1':
212 case '\xc2':
213 case '\xc3':
214 case '\xc4':
215 case '\xc5':
216 case '\xc6':
217 case '\xc7':
218 case '\xc8':
219 case '\xc9':
220 case '\xca':
221 case '\xcb':
222 case '\xcc':
223 case '\xcd':
224 case '\xce':
225 case '\xcf':
226 case '\xd0':
227 case '\xd1':
228 case '\xd2':
229 case '\xd3':
230 case '\xd4':
231 case '\xd5':
232 case '\xd6':
233 case '\xd7':
234 case '\xd8':
235 case '\xd9':
236 case '\xda':
237 case '\xdb':
238 case '\xdc':
239 case '\xdd':
240 case '\xde':
241 case '\xdf':
242 case '\xe0':
243 case '\xe1':
244 case '\xe2':
245 case '\xe3':
246 case '\xe4':
247 case '\xe5':
248 case '\xe6':
249 case '\xe7':
250 case '\xe8':
251 case '\xe9':
252 case '\xea':
253 case '\xeb':
254 case '\xec':
255 case '\xed':
256 case '\xee':
257 case '\xef':
258 case '\xf0':
259 case '\xf1':
260 case '\xf2':
261 case '\xf3':
262 case '\xf4':
263 case '\xf5':
264 case '\xf6':
265 case '\xf7':
266 case '\xf8':
267 case '\xf9':
268 case '\xfa':
269 case '\xfb':
270 case '\xfc':
271 case '\xfd':
272 case '\xfe':
273 case '\xff':
275 // Test works
276 retval = 0;
278 break;
281 if (retval != 0)
283 ACE_ERROR ((LM_ERROR,
284 ACE_TEXT ("ERROR: Switch doesn't worked as expected\n")));
286 else
288 ACE_DEBUG ((LM_INFO,
289 ACE_TEXT ("Switch worked as expected\n")));
292 ACE_END_TEST;
294 return retval;