d: Merge upstream dmd, druntime 26f049fb26, phobos 330d6a4fd.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / reserved_version.d
blobf7a554ce729bf985840ac299fe49e51ca4ebfe40
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 `LittleEndian` is reserved and cannot be set
80 fail_compilation/reserved_version.d(180): Error: version identifier `BigEndian` is reserved and cannot be set
81 fail_compilation/reserved_version.d(181): Error: version identifier `ELFv1` is reserved and cannot be set
82 fail_compilation/reserved_version.d(182): Error: version identifier `ELFv2` is reserved and cannot be set
83 fail_compilation/reserved_version.d(183): Error: version identifier `CRuntime_Bionic` is reserved and cannot be set
84 fail_compilation/reserved_version.d(184): Error: version identifier `CRuntime_DigitalMars` is reserved and cannot be set
85 fail_compilation/reserved_version.d(185): Error: version identifier `CRuntime_Glibc` is reserved and cannot be set
86 fail_compilation/reserved_version.d(186): Error: version identifier `CRuntime_Microsoft` is reserved and cannot be set
87 fail_compilation/reserved_version.d(187): Error: version identifier `CRuntime_Musl` is reserved and cannot be set
88 fail_compilation/reserved_version.d(188): Error: version identifier `CRuntime_Newlib` is reserved and cannot be set
89 fail_compilation/reserved_version.d(189): Error: version identifier `CRuntime_UClibc` is reserved and cannot be set
90 fail_compilation/reserved_version.d(190): Error: version identifier `CRuntime_WASI` is reserved and cannot be set
91 fail_compilation/reserved_version.d(191): Error: version identifier `D_Coverage` is reserved and cannot be set
92 fail_compilation/reserved_version.d(192): Error: version identifier `D_Ddoc` is reserved and cannot be set
93 fail_compilation/reserved_version.d(193): Error: version identifier `D_InlineAsm_X86` is reserved and cannot be set
94 fail_compilation/reserved_version.d(194): Error: version identifier `D_InlineAsm_X86_64` is reserved and cannot be set
95 fail_compilation/reserved_version.d(195): Error: version identifier `D_LP64` is reserved and cannot be set
96 fail_compilation/reserved_version.d(196): Error: version identifier `D_X32` is reserved and cannot be set
97 fail_compilation/reserved_version.d(197): Error: version identifier `D_HardFloat` is reserved and cannot be set
98 fail_compilation/reserved_version.d(198): Error: version identifier `D_SoftFloat` is reserved and cannot be set
99 fail_compilation/reserved_version.d(199): Error: version identifier `D_PIC` is reserved and cannot be set
100 fail_compilation/reserved_version.d(200): Error: version identifier `D_SIMD` is reserved and cannot be set
101 fail_compilation/reserved_version.d(201): Error: version identifier `D_Version2` is reserved and cannot be set
102 fail_compilation/reserved_version.d(202): Error: version identifier `D_NoBoundsChecks` is reserved and cannot be set
103 fail_compilation/reserved_version.d(205): Error: version identifier `all` is reserved and cannot be set
104 fail_compilation/reserved_version.d(206): Error: version identifier `none` is reserved and cannot be set
105 fail_compilation/reserved_version.d(207): Error: version identifier `AsmJS` is reserved and cannot be set
106 fail_compilation/reserved_version.d(208): Error: version identifier `Emscripten` is reserved and cannot be set
107 fail_compilation/reserved_version.d(209): Error: version identifier `WebAssembly` is reserved and cannot be set
108 fail_compilation/reserved_version.d(210): Error: version identifier `WASI` is reserved and cannot be set
109 fail_compilation/reserved_version.d(211): Error: version identifier `CppRuntime_Clang` is reserved and cannot be set
110 fail_compilation/reserved_version.d(212): Error: version identifier `CppRuntime_DigitalMars` is reserved and cannot be set
111 fail_compilation/reserved_version.d(213): Error: version identifier `CppRuntime_Gcc` is reserved and cannot be set
112 fail_compilation/reserved_version.d(214): Error: version identifier `CppRuntime_Microsoft` is reserved and cannot be set
113 fail_compilation/reserved_version.d(215): Error: version identifier `CppRuntime_Sun` is reserved and cannot be set
114 fail_compilation/reserved_version.d(216): Error: version identifier `D_PIE` is reserved and cannot be set
115 fail_compilation/reserved_version.d(217): Error: version identifier `AVR` is reserved and cannot be set
116 fail_compilation/reserved_version.d(218): Error: version identifier `D_PreConditions` is reserved and cannot be set
117 fail_compilation/reserved_version.d(219): Error: version identifier `D_PostConditions` is reserved and cannot be set
118 fail_compilation/reserved_version.d(220): Error: version identifier `D_ProfileGC` is reserved and cannot be set
119 fail_compilation/reserved_version.d(221): Error: version identifier `D_Invariants` is reserved and cannot be set
120 fail_compilation/reserved_version.d(222): Error: version identifier `D_Optimized` is reserved and cannot be set
121 fail_compilation/reserved_version.d(223): Error: version identifier `VisionOS` is reserved and cannot be set
125 // Some extra empty lines to help fixup the manual line numbering after adding new version identifiers
127 #line 105
128 version = MSP430;
129 version = D_P16;
130 version = DigitalMars;
131 version = GNU;
132 version = LDC;
133 version = SDC;
134 version = Windows;
135 version = Win32;
136 version = Win64;
137 version = linux;
138 version = OSX;
139 version = iOS;
140 version = TVOS;
141 version = WatchOS;
142 version = FreeBSD;
143 version = OpenBSD;
144 version = NetBSD;
145 version = DragonFlyBSD;
146 version = BSD;
147 version = Solaris;
148 version = Posix;
149 version = AIX;
150 version = Haiku;
151 version = SkyOS;
152 version = SysV3;
153 version = SysV4;
154 version = Hurd;
155 version = Android;
156 version = PlayStation;
157 version = PlayStation4;
158 version = Cygwin;
159 version = MinGW;
160 version = FreeStanding;
161 version = X86;
162 version = X86_64;
163 version = ARM;
164 version = ARM_Thumb;
165 version = ARM_SoftFloat;
166 version = ARM_SoftFP;
167 version = ARM_HardFloat;
168 version = AArch64;
169 version = Epiphany;
170 version = PPC;
171 version = PPC_SoftFloat;
172 version = PPC_HardFloat;
173 version = PPC64;
174 version = IA64;
175 version = MIPS32;
176 version = MIPS64;
177 version = MIPS_O32;
178 version = MIPS_N32;
179 version = MIPS_O64;
180 version = MIPS_N64;
181 version = MIPS_EABI;
182 version = MIPS_SoftFloat;
183 version = MIPS_HardFloat;
184 version = NVPTX;
185 version = NVPTX64;
186 version = RISCV32;
187 version = RISCV64;
188 version = SPARC;
189 version = SPARC_V8Plus;
190 version = SPARC_SoftFloat;
191 version = SPARC_HardFloat;
192 version = SPARC64;
193 version = S390;
194 version = S390X;
195 version = SystemZ;
196 version = HPPA;
197 version = HPPA64;
198 version = SH;
199 version = Alpha;
200 version = Alpha_SoftFloat;
201 version = Alpha_HardFloat;
202 version = LittleEndian;
203 version = BigEndian;
204 version = ELFv1;
205 version = ELFv2;
206 version = CRuntime_Bionic;
207 version = CRuntime_DigitalMars;
208 version = CRuntime_Glibc;
209 version = CRuntime_Microsoft;
210 version = CRuntime_Musl;
211 version = CRuntime_Newlib;
212 version = CRuntime_UClibc;
213 version = CRuntime_WASI;
214 version = D_Coverage;
215 version = D_Ddoc;
216 version = D_InlineAsm_X86;
217 version = D_InlineAsm_X86_64;
218 version = D_LP64;
219 version = D_X32;
220 version = D_HardFloat;
221 version = D_SoftFloat;
222 version = D_PIC;
223 version = D_SIMD;
224 version = D_Version2;
225 version = D_NoBoundsChecks;
226 //version = unittest;
227 //version = assert;
228 version = all;
229 version = none;
230 version = AsmJS;
231 version = Emscripten;
232 version = WebAssembly;
233 version = WASI;
234 version = CppRuntime_Clang;
235 version = CppRuntime_DigitalMars;
236 version = CppRuntime_Gcc;
237 version = CppRuntime_Microsoft;
238 version = CppRuntime_Sun;
239 version = D_PIE;
240 version = AVR;
241 version = D_PreConditions;
242 version = D_PostConditions;
243 version = D_ProfileGC;
244 version = D_Invariants;
245 version = D_Optimized;
246 version = VisionOS;
248 // This should work though
249 debug = DigitalMars;
250 debug = GNU;
251 debug = LDC;
252 debug = SDC;
253 debug = Windows;
254 debug = Win32;
255 debug = Win64;
256 debug = linux;
257 debug = OSX;
258 debug = FreeBSD;
259 debug = OpenBSD;
260 debug = NetBSD;
261 debug = DragonFlyBSD;
262 debug = BSD;
263 debug = Solaris;
264 debug = Posix;
265 debug = AIX;
266 debug = Haiku;
267 debug = SkyOS;
268 debug = SysV3;
269 debug = SysV4;
270 debug = Hurd;
271 debug = Android;
272 debug = Cygwin;
273 debug = MinGW;
274 debug = FreeStanding;
275 debug = X86;
276 debug = X86_64;
277 debug = ARM;
278 debug = ARM_Thumb;
279 debug = ARM_SoftFloat;
280 debug = ARM_SoftFP;
281 debug = ARM_HardFloat;
282 debug = AArch64;
283 debug = Epiphany;
284 debug = PPC;
285 debug = PPC_SoftFloat;
286 debug = PPC_HardFloat;
287 debug = PPC64;
288 debug = IA64;
289 debug = MIPS32;
290 debug = MIPS64;
291 debug = MIPS_O32;
292 debug = MIPS_N32;
293 debug = MIPS_O64;
294 debug = MIPS_N64;
295 debug = MIPS_EABI;
296 debug = MIPS_SoftFloat;
297 debug = MIPS_HardFloat;
298 debug = NVPTX;
299 debug = NVPTX64;
300 debug = RISCV32;
301 debug = RISCV64;
302 debug = SPARC;
303 debug = SPARC_V8Plus;
304 debug = SPARC_SoftFloat;
305 debug = SPARC_HardFloat;
306 debug = SPARC64;
307 debug = S390;
308 debug = S390X;
309 debug = SystemZ;
310 debug = HPPA;
311 debug = HPPA64;
312 debug = SH;
313 debug = WebAssembly;
314 debug = WASI;
315 debug = Alpha;
316 debug = Alpha_SoftFloat;
317 debug = Alpha_HardFloat;
318 debug = LittleEndian;
319 debug = BigEndian;
320 debug = ELFv1;
321 debug = ELFv2;
322 debug = CRuntime_Bionic;
323 debug = CRuntime_DigitalMars;
324 debug = CRuntime_Glibc;
325 debug = CRuntime_Microsoft;
326 debug = CRuntime_Musl;
327 debug = CRuntime_Newlib;
328 debug = CRuntime_UClibc;
329 debug = CRuntime_WASI;
330 debug = CppRuntime_Clang;
331 debug = CppRuntime_DigitalMars;
332 debug = CppRuntime_Gcc;
333 debug = CppRuntime_Microsoft;
334 debug = CppRuntime_Sun;
335 debug = D_Coverage;
336 debug = D_Ddoc;
337 debug = D_InlineAsm_X86;
338 debug = D_InlineAsm_X86_64;
339 debug = D_LP64;
340 debug = D_X32;
341 debug = D_HardFloat;
342 debug = D_SoftFloat;
343 debug = D_PIC;
344 debug = D_PIE;
345 debug = D_SIMD;
346 debug = D_Version2;
347 debug = D_NoBoundsChecks;
348 //debug = unittest;
349 //debug = assert;
350 debug = all;
351 debug = none;
352 debug = D_P16;
353 debug = MSP430;
354 debug = AVR;
355 debug = D_PreConditions;
356 debug = D_PostConditions;
357 debug = D_ProfileGC;
358 debug = D_Optimized;