Debian Codegraph @

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

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