@@ -285,9 +285,11 @@ public Task UnsignedIntBitshiftTest()
285
285
{
286
286
var inputContents = @"
287
287
const int Signed = 1;
288
- const unsigned int Unsigned = 1U;
288
+ const long SignedLong = 1;
289
+ const unsigned int Unsigned = 1;
289
290
290
291
const int ShiftSigned = 1 << Signed;
292
+ const int ShiftSignedLong = 1 << SignedLong;
291
293
const int ShiftUnsigned = 1 << Unsigned;
292
294
293
295
const int CInt = 1 << 1;
@@ -309,41 +311,47 @@ public static partial class Methods
309
311
[NativeTypeName(""const int"")]
310
312
public const int Signed = 1;
311
313
314
+ [NativeTypeName(""const long"")]
315
+ public const int SignedLong = 1;
316
+
312
317
[NativeTypeName(""const unsigned int"")]
313
- public const uint Unsigned = 1U ;
318
+ public const uint Unsigned = 1 ;
314
319
315
320
[NativeTypeName(""const int"")]
316
321
public const int ShiftSigned = 1 << Signed;
317
322
323
+ [NativeTypeName(""const int"")]
324
+ public const int ShiftSignedLong = 1 << SignedLong;
325
+
318
326
[NativeTypeName(""const int"")]
319
327
public const int ShiftUnsigned = 1 << (int)(Unsigned);
320
328
321
329
[NativeTypeName(""const int"")]
322
330
public const int CInt = 1 << 1;
323
331
324
332
[NativeTypeName(""const int"")]
325
- public const int CUint = 1 << (int)(1U) ;
333
+ public const int CUint = 1 << 1 ;
326
334
327
335
[NativeTypeName(""#define Left 1 << 1U"")]
328
- public const int Left = 1 << (int)(1U) ;
336
+ public const int Left = 1 << 1 ;
329
337
330
338
[NativeTypeName(""#define Right 1 >> 1U"")]
331
- public const int Right = 1 >> (int)(1U) ;
339
+ public const int Right = 1 >> 1 ;
332
340
333
341
[NativeTypeName(""#define Int 1 << 1"")]
334
342
public const int Int = 1 << 1;
335
343
336
344
[NativeTypeName(""#define Long 1 << 1L"")]
337
- public const int Long = 1 << (int)(1) ;
345
+ public const int Long = 1 << 1 ;
338
346
339
347
[NativeTypeName(""#define LongLong 1 << 1LL"")]
340
- public const int LongLong = 1 << (int)(1L) ;
348
+ public const int LongLong = 1 << 1 ;
341
349
342
350
[NativeTypeName(""#define ULong 1 << 1UL"")]
343
- public const int ULong = 1 << (int)(1U) ;
351
+ public const int ULong = 1 << 1 ;
344
352
345
353
[NativeTypeName(""#define ULongLong 1 << 1ULL"")]
346
- public const int ULongLong = 1 << (int)(1UL) ;
354
+ public const int ULongLong = 1 << 1 ;
347
355
}
348
356
}
349
357
" ;
0 commit comments