@@ -292,8 +292,10 @@ public Task UnsignedIntBitshiftTest()
292
292
const int ShiftSignedLong = 1 << SignedLong;
293
293
const int ShiftUnsigned = 1 << Unsigned;
294
294
295
- const int Char = 1 << (signed char)1;
296
- const int UChar = 1 << (unsigned char)1;
295
+ const int Char = 1 << 'a';
296
+
297
+ const int Byte = 1 << (signed char)1;
298
+ const int UByte = 1 << (unsigned char)1;
297
299
298
300
const int CInt = 1 << 1;
299
301
const int CUint = 1 << 1U;
@@ -353,10 +355,13 @@ public static partial class Methods
353
355
public const int ShiftUnsigned = 1 << (int)(Unsigned);
354
356
355
357
[NativeTypeName(""const int"")]
356
- public const int Char = 1 << (sbyte)(1);
358
+ public const int Char = 1 << (sbyte)('a');
359
+
360
+ [NativeTypeName(""const int"")]
361
+ public const int Byte = 1 << (sbyte)(1);
357
362
358
363
[NativeTypeName(""const int"")]
359
- public const int UChar = unchecked(1 << (byte)(1));
364
+ public const int UByte = unchecked(1 << (byte)(1));
360
365
361
366
[NativeTypeName(""const int"")]
362
367
public const int CInt = 1 << 1;
@@ -420,4 +425,4 @@ public static partial class Methods
420
425
421
426
return ValidateGeneratedCSharpLatestWindowsBindingsAsync ( inputContents , expectedOutputContents , commandLineArgs : DefaultCClangCommandLineArgs , language : "c" , languageStandard : DefaultCStandard ) ;
422
427
}
423
- }
428
+ }
0 commit comments