Debian Codegraph @

gcc/testsuite/gdc.test/fail_compilation/reserved_version.d

raw
1 // REQUIRED_ARGS: -verrors=0
2 /*
3 TEST_OUTPUT:
4 ---
5 fail_compilation/reserved_version.d(105): Error: version identifier `MSP430` is reserved and cannot be set
6 fail_compilation/reserved_version.d(106): Error: version identifier `D_P16` is reserved and cannot be set
7 fail_compilation/reserved_version.d(107): Error: version identifier `DigitalMars` is reserved and cannot be set
8 fail_compilation/reserved_version.d(108): Error: version identifier `GNU` is reserved and cannot be set
9 fail_compilation/reserved_version.d(109): Error: version identifier `LDC` is reserved and cannot be set
10 fail_compilation/reserved_version.d(110): Error: version identifier `SDC` is reserved and cannot be set
11 fail_compilation/reserved_version.d(111): Error: version identifier `Windows` is reserved and cannot be set
12 fail_compilation/reserved_version.d(112): Error: version identifier `Win32` is reserved and cannot be set
13 fail_compilation/reserved_version.d(113): Error: version identifier `Win64` is reserved and cannot be set
14 fail_compilation/reserved_version.d(114): Error: version identifier `linux` is reserved and cannot be set
15 fail_compilation/reserved_version.d(115): Error: version identifier `OSX` is reserved and cannot be set
16 fail_compilation/reserved_version.d(116): Error: version identifier `iOS` is reserved and cannot be set
17 fail_compilation/reserved_version.d(117): Error: version identifier `TVOS` is reserved and cannot be set
18 fail_compilation/reserved_version.d(118): Error: version identifier `WatchOS` is reserved and cannot be set
19 fail_compilation/reserved_version.d(119): Error: version identifier `FreeBSD` is reserved and cannot be set
20 fail_compilation/reserved_version.d(120): Error: version identifier `OpenBSD` is reserved and cannot be set
21 fail_compilation/reserved_version.d(121): Error: version identifier `NetBSD` is reserved and cannot be set
22 fail_compilation/reserved_version.d(122): Error: version identifier `DragonFlyBSD` is reserved and cannot be set
23 fail_compilation/reserved_version.d(123): Error: version identifier `BSD` is reserved and cannot be set
24 fail_compilation/reserved_version.d(124): Error: version identifier `Solaris` is reserved and cannot be set
25 fail_compilation/reserved_version.d(125): Error: version identifier `Posix` is reserved and cannot be set
26 fail_compilation/reserved_version.d(126): Error: version identifier `AIX` is reserved and cannot be set
27 fail_compilation/reserved_version.d(127): Error: version identifier `Haiku` is reserved and cannot be set
28 fail_compilation/reserved_version.d(128): Error: version identifier `SkyOS` is reserved and cannot be set
29 fail_compilation/reserved_version.d(129): Error: version identifier `SysV3` is reserved and cannot be set
30 fail_compilation/reserved_version.d(130): Error: version identifier `SysV4` is reserved and cannot be set
31 fail_compilation/reserved_version.d(131): Error: version identifier `Hurd` is reserved and cannot be set
32 fail_compilation/reserved_version.d(132): Error: version identifier `Android` is reserved and cannot be set
33 fail_compilation/reserved_version.d(133): Error: version identifier `PlayStation` is reserved and cannot be set
34 fail_compilation/reserved_version.d(134): Error: version identifier `PlayStation4` is reserved and cannot be set
35 fail_compilation/reserved_version.d(135): Error: version identifier `Cygwin` is reserved and cannot be set
36 fail_compilation/reserved_version.d(136): Error: version identifier `MinGW` is reserved and cannot be set
37 fail_compilation/reserved_version.d(137): Error: version identifier `FreeStanding` is reserved and cannot be set
38 fail_compilation/reserved_version.d(138): Error: version identifier `X86` is reserved and cannot be set
39 fail_compilation/reserved_version.d(139): Error: version identifier `X86_64` is reserved and cannot be set
40 fail_compilation/reserved_version.d(140): Error: version identifier `ARM` is reserved and cannot be set
41 fail_compilation/reserved_version.d(141): Error: version identifier `ARM_Thumb` is reserved and cannot be set
42 fail_compilation/reserved_version.d(142): Error: version identifier `ARM_SoftFloat` is reserved and cannot be set
43 fail_compilation/reserved_version.d(143): Error: version identifier `ARM_SoftFP` is reserved and cannot be set
44 fail_compilation/reserved_version.d(144): Error: version identifier `ARM_HardFloat` is reserved and cannot be set
45 fail_compilation/reserved_version.d(145): Error: version identifier `AArch64` is reserved and cannot be set
46 fail_compilation/reserved_version.d(146): Error: version identifier `Epiphany` is reserved and cannot be set
47 fail_compilation/reserved_version.d(147): Error: version identifier `PPC` is reserved and cannot be set
48 fail_compilation/reserved_version.d(148): Error: version identifier `PPC_SoftFloat` is reserved and cannot be set
49 fail_compilation/reserved_version.d(149): Error: version identifier `PPC_HardFloat` is reserved and cannot be set
50 fail_compilation/reserved_version.d(150): Error: version identifier `PPC64` is reserved and cannot be set
51 fail_compilation/reserved_version.d(151): Error: version identifier `IA64` is reserved and cannot be set
52 fail_compilation/reserved_version.d(152): Error: version identifier `MIPS32` is reserved and cannot be set
53 fail_compilation/reserved_version.d(153): Error: version identifier `MIPS64` is reserved and cannot be set
54 fail_compilation/reserved_version.d(154): Error: version identifier `MIPS_O32` is reserved and cannot be set
55 fail_compilation/reserved_version.d(155): Error: version identifier `MIPS_N32` is reserved and cannot be set
56 fail_compilation/reserved_version.d(156): Error: version identifier `MIPS_O64` is reserved and cannot be set
57 fail_compilation/reserved_version.d(157): Error: version identifier `MIPS_N64` is reserved and cannot be set
58 fail_compilation/reserved_version.d(158): Error: version identifier `MIPS_EABI` is reserved and cannot be set
59 fail_compilation/reserved_version.d(159): Error: version identifier `MIPS_SoftFloat` is reserved and cannot be set
60 fail_compilation/reserved_version.d(160): Error: version identifier `MIPS_HardFloat` is reserved and cannot be set
61 fail_compilation/reserved_version.d(161): Error: version identifier `NVPTX` is reserved and cannot be set
62 fail_compilation/reserved_version.d(162): Error: version identifier `NVPTX64` is reserved and cannot be set
63 fail_compilation/reserved_version.d(163): Error: version identifier `RISCV32` is reserved and cannot be set
64 fail_compilation/reserved_version.d(164): Error: version identifier `RISCV64` is reserved and cannot be set
65 fail_compilation/reserved_version.d(165): Error: version identifier `SPARC` is reserved and cannot be set
66 fail_compilation/reserved_version.d(166): Error: version identifier `SPARC_V8Plus` is reserved and cannot be set
67 fail_compilation/reserved_version.d(167): Error: version identifier `SPARC_SoftFloat` is reserved and cannot be set
68 fail_compilation/reserved_version.d(168): Error: version identifier `SPARC_HardFloat` is reserved and cannot be set
69 fail_compilation/reserved_version.d(169): Error: version identifier `SPARC64` is reserved and cannot be set
70 fail_compilation/reserved_version.d(170): Error: version identifier `S390` is reserved and cannot be set
71 fail_compilation/reserved_version.d(171): Error: version identifier `S390X` is reserved and cannot be set
72 fail_compilation/reserved_version.d(172): Error: version identifier `SystemZ` is reserved and cannot be set
73 fail_compilation/reserved_version.d(173): Error: version identifier `HPPA` is reserved and cannot be set
74 fail_compilation/reserved_version.d(174): Error: version identifier `HPPA64` is reserved and cannot be set
75 fail_compilation/reserved_version.d(175): Error: version identifier `SH` is reserved and cannot be set
76 fail_compilation/reserved_version.d(176): Error: version identifier `Alpha` is reserved and cannot be set
77 fail_compilation/reserved_version.d(177): Error: version identifier `Alpha_SoftFloat` is reserved and cannot be set
78 fail_compilation/reserved_version.d(178): Error: version identifier `Alpha_HardFloat` is reserved and cannot be set
79 fail_compilation/reserved_version.d(179): Error: version identifier `LoongArch32` is reserved and cannot be set
80 fail_compilation/reserved_version.d(180): Error: version identifier `LoongArch64` is reserved and cannot be set
81 fail_compilation/reserved_version.d(181): Error: version identifier `LoongArch_HardFloat` is reserved and cannot be set
82 fail_compilation/reserved_version.d(182): Error: version identifier `LoongArch_SoftFloat` is reserved and cannot be set
83 fail_compilation/reserved_version.d(183): Error: version identifier `Xtensa` is reserved and cannot be set
84 fail_compilation/reserved_version.d(184): Error: version identifier `LittleEndian` is reserved and cannot be set
85 fail_compilation/reserved_version.d(185): Error: version identifier `BigEndian` is reserved and cannot be set
86 fail_compilation/reserved_version.d(186): Error: version identifier `ELFv1` is reserved and cannot be set
87 fail_compilation/reserved_version.d(187): Error: version identifier `ELFv2` is reserved and cannot be set
88 fail_compilation/reserved_version.d(188): Error: version identifier `CRuntime_Bionic` is reserved and cannot be set
89 fail_compilation/reserved_version.d(189): Error: version identifier `CRuntime_DigitalMars` is reserved and cannot be set
90 fail_compilation/reserved_version.d(190): Error: version identifier `CRuntime_Glibc` is reserved and cannot be set
91 fail_compilation/reserved_version.d(191): Error: version identifier `CRuntime_Microsoft` is reserved and cannot be set
92 fail_compilation/reserved_version.d(192): Error: version identifier `CRuntime_Musl` is reserved and cannot be set
93 fail_compilation/reserved_version.d(193): Error: version identifier `CRuntime_Newlib` is reserved and cannot be set
94 fail_compilation/reserved_version.d(194): Error: version identifier `CRuntime_UClibc` is reserved and cannot be set
95 fail_compilation/reserved_version.d(195): Error: version identifier `CRuntime_WASI` is reserved and cannot be set
96 fail_compilation/reserved_version.d(196): Error: version identifier `D_Coverage` is reserved and cannot be set
97 fail_compilation/reserved_version.d(197): Error: version identifier `D_Ddoc` is reserved and cannot be set
98 fail_compilation/reserved_version.d(198): Error: version identifier `D_InlineAsm_X86` is reserved and cannot be set
99 fail_compilation/reserved_version.d(199): Error: version identifier `D_InlineAsm_X86_64` is reserved and cannot be set
100 fail_compilation/reserved_version.d(200): Error: version identifier `D_LP64` is reserved and cannot be set
101 fail_compilation/reserved_version.d(201): Error: version identifier `D_X32` is reserved and cannot be set
102 fail_compilation/reserved_version.d(202): Error: version identifier `D_HardFloat` is reserved and cannot be set
103 fail_compilation/reserved_version.d(203): Error: version identifier `D_SoftFloat` is reserved and cannot be set
104 fail_compilation/reserved_version.d(204): Error: version identifier `D_PIC` is reserved and cannot be set
105 fail_compilation/reserved_version.d(205): Error: version identifier `D_SIMD` is reserved and cannot be set
106 fail_compilation/reserved_version.d(206): Error: version identifier `D_Version2` is reserved and cannot be set
107 fail_compilation/reserved_version.d(207): Error: version identifier `D_NoBoundsChecks` is reserved and cannot be set
108 fail_compilation/reserved_version.d(210): Error: version identifier `all` is reserved and cannot be set
109 fail_compilation/reserved_version.d(211): Error: version identifier `none` is reserved and cannot be set
110 fail_compilation/reserved_version.d(212): Error: version identifier `AsmJS` is reserved and cannot be set
111 fail_compilation/reserved_version.d(213): Error: version identifier `Emscripten` is reserved and cannot be set
112 fail_compilation/reserved_version.d(214): Error: version identifier `WebAssembly` is reserved and cannot be set
113 fail_compilation/reserved_version.d(215): Error: version identifier `WASI` is reserved and cannot be set
114 fail_compilation/reserved_version.d(216): Error: version identifier `CppRuntime_LLVM` is reserved and cannot be set
115 fail_compilation/reserved_version.d(217): Error: version identifier `CppRuntime_DigitalMars` is reserved and cannot be set
116 fail_compilation/reserved_version.d(218): Error: version identifier `CppRuntime_GNU` is reserved and cannot be set
117 fail_compilation/reserved_version.d(219): Error: version identifier `CppRuntime_Microsoft` is reserved and cannot be set
118 fail_compilation/reserved_version.d(220): Error: version identifier `CppRuntime_Sun` is reserved and cannot be set
119 fail_compilation/reserved_version.d(221): Error: version identifier `D_PIE` is reserved and cannot be set
120 fail_compilation/reserved_version.d(222): Error: version identifier `AVR` is reserved and cannot be set
121 fail_compilation/reserved_version.d(223): Error: version identifier `D_PreConditions` is reserved and cannot be set
122 fail_compilation/reserved_version.d(224): Error: version identifier `D_PostConditions` is reserved and cannot be set
123 fail_compilation/reserved_version.d(225): Error: version identifier `D_ProfileGC` is reserved and cannot be set
124 fail_compilation/reserved_version.d(226): Error: version identifier `D_Invariants` is reserved and cannot be set
125 fail_compilation/reserved_version.d(227): Error: version identifier `D_Optimized` is reserved and cannot be set
126 fail_compilation/reserved_version.d(228): Error: version identifier `VisionOS` is reserved and cannot be set
127 ---
128 */
129
130 // Some extra empty lines to help fixup the manual line numbering after adding new version identifiers
131
132 #line 105
133 version = MSP430;
134 version = D_P16;
135 version = DigitalMars;
136 version = GNU;
137 version = LDC;
138 version = SDC;
139 version = Windows;
140 version = Win32;
141 version = Win64;
142 version = linux;
143 version = OSX;
144 version = iOS;
145 version = TVOS;
146 version = WatchOS;
147 version = FreeBSD;
148 version = OpenBSD;
149 version = NetBSD;
150 version = DragonFlyBSD;
151 version = BSD;
152 version = Solaris;
153 version = Posix;
154 version = AIX;
155 version = Haiku;
156 version = SkyOS;
157 version = SysV3;
158 version = SysV4;
159 version = Hurd;
160 version = Android;
161 version = PlayStation;
162 version = PlayStation4;
163 version = Cygwin;
164 version = MinGW;
165 version = FreeStanding;
166 version = X86;
167 version = X86_64;
168 version = ARM;
169 version = ARM_Thumb;
170 version = ARM_SoftFloat;
171 version = ARM_SoftFP;
172 version = ARM_HardFloat;
173 version = AArch64;
174 version = Epiphany;
175 version = PPC;
176 version = PPC_SoftFloat;
177 version = PPC_HardFloat;
178 version = PPC64;
179 version = IA64;
180 version = MIPS32;
181 version = MIPS64;
182 version = MIPS_O32;
183 version = MIPS_N32;
184 version = MIPS_O64;
185 version = MIPS_N64;
186 version = MIPS_EABI;
187 version = MIPS_SoftFloat;
188 version = MIPS_HardFloat;
189 version = NVPTX;
190 version = NVPTX64;
191 version = RISCV32;
192 version = RISCV64;
193 version = SPARC;
194 version = SPARC_V8Plus;
195 version = SPARC_SoftFloat;
196 version = SPARC_HardFloat;
197 version = SPARC64;
198 version = S390;
199 version = S390X;
200 version = SystemZ;
201 version = HPPA;
202 version = HPPA64;
203 version = SH;
204 version = Alpha;
205 version = Alpha_SoftFloat;
206 version = Alpha_HardFloat;
207 version = LoongArch32;
208 version = LoongArch64;
209 version = LoongArch_HardFloat;
210 version = LoongArch_SoftFloat;
211 version = Xtensa;
212 version = LittleEndian;
213 version = BigEndian;
214 version = ELFv1;
215 version = ELFv2;
216 version = CRuntime_Bionic;
217 version = CRuntime_DigitalMars;
218 version = CRuntime_Glibc;
219 version = CRuntime_Microsoft;
220 version = CRuntime_Musl;
221 version = CRuntime_Newlib;
222 version = CRuntime_UClibc;
223 version = CRuntime_WASI;
224 version = D_Coverage;
225 version = D_Ddoc;
226 version = D_InlineAsm_X86;
227 version = D_InlineAsm_X86_64;
228 version = D_LP64;
229 version = D_X32;
230 version = D_HardFloat;
231 version = D_SoftFloat;
232 version = D_PIC;
233 version = D_SIMD;
234 version = D_Version2;
235 version = D_NoBoundsChecks;
236 //version = unittest;
237 //version = assert;
238 version = all;
239 version = none;
240 version = AsmJS;
241 version = Emscripten;
242 version = WebAssembly;
243 version = WASI;
244 version = CppRuntime_LLVM;
245 version = CppRuntime_DigitalMars;
246 version = CppRuntime_GNU;
247 version = CppRuntime_Microsoft;
248 version = CppRuntime_Sun;
249 version = D_PIE;
250 version = AVR;
251 version = D_PreConditions;
252 version = D_PostConditions;
253 version = D_ProfileGC;
254 version = D_Invariants;
255 version = D_Optimized;
256 version = VisionOS;
257
258 // This should work though
259 debug = DigitalMars;
260 debug = GNU;
261 debug = LDC;
262 debug = SDC;
263 debug = Windows;
264 debug = Win32;
265 debug = Win64;
266 debug = linux;
267 debug = OSX;
268 debug = FreeBSD;
269 debug = OpenBSD;
270 debug = NetBSD;
271 debug = DragonFlyBSD;
272 debug = BSD;
273 debug = Solaris;
274 debug = Posix;
275 debug = AIX;
276 debug = Haiku;
277 debug = SkyOS;
278 debug = SysV3;
279 debug = SysV4;
280 debug = Hurd;
281 debug = Android;
282 debug = Cygwin;
283 debug = MinGW;
284 debug = FreeStanding;
285 debug = X86;
286 debug = X86_64;
287 debug = ARM;
288 debug = ARM_Thumb;
289 debug = ARM_SoftFloat;
290 debug = ARM_SoftFP;
291 debug = ARM_HardFloat;
292 debug = AArch64;
293 debug = Epiphany;
294 debug = PPC;
295 debug = PPC_SoftFloat;
296 debug = PPC_HardFloat;
297 debug = PPC64;
298 debug = IA64;
299 debug = MIPS32;
300 debug = MIPS64;
301 debug = MIPS_O32;
302 debug = MIPS_N32;
303 debug = MIPS_O64;
304 debug = MIPS_N64;
305 debug = MIPS_EABI;
306 debug = MIPS_SoftFloat;
307 debug = MIPS_HardFloat;
308 debug = NVPTX;
309 debug = NVPTX64;
310 debug = RISCV32;
311 debug = RISCV64;
312 debug = SPARC;
313 debug = SPARC_V8Plus;
314 debug = SPARC_SoftFloat;
315 debug = SPARC_HardFloat;
316 debug = SPARC64;
317 debug = S390;
318 debug = S390X;
319 debug = SystemZ;
320 debug = HPPA;
321 debug = HPPA64;
322 debug = SH;
323 debug = WebAssembly;
324 debug = WASI;
325 debug = Alpha;
326 debug = Alpha_SoftFloat;
327 debug = Alpha_HardFloat;
328 debug = LoongArch32;
329 debug = LoongArch64;
330 debug = LoongArch_HardFloat;
331 debug = LoongArch_SoftFloat;
332 debug = Xtensa;
333 debug = LittleEndian;
334 debug = BigEndian;
335 debug = ELFv1;
336 debug = ELFv2;
337 debug = CRuntime_Bionic;
338 debug = CRuntime_DigitalMars;
339 debug = CRuntime_Glibc;
340 debug = CRuntime_Microsoft;
341 debug = CRuntime_Musl;
342 debug = CRuntime_Newlib;
343 debug = CRuntime_UClibc;
344 debug = CRuntime_WASI;
345 debug = CppRuntime_LLVM;
346 debug = CppRuntime_DigitalMars;
347 debug = CppRuntime_GNU;
348 debug = CppRuntime_Microsoft;
349 debug = CppRuntime_Sun;
350 debug = D_Coverage;
351 debug = D_Ddoc;
352 debug = D_InlineAsm_X86;
353 debug = D_InlineAsm_X86_64;
354 debug = D_LP64;
355 debug = D_X32;
356 debug = D_HardFloat;
357 debug = D_SoftFloat;
358 debug = D_PIC;
359 debug = D_PIE;
360 debug = D_SIMD;
361 debug = D_Version2;
362 debug = D_NoBoundsChecks;
363 //debug = unittest;
364 //debug = assert;
365 debug = all;
366 debug = none;
367 debug = D_P16;
368 debug = MSP430;
369 debug = AVR;
370 debug = D_PreConditions;
371 debug = D_PostConditions;
372 debug = D_ProfileGC;
373 debug = D_Optimized;