File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
tests/ClangSharp.PInvokeGenerator.UnitTests Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -297,11 +297,14 @@ public Task UnsignedIntBitshiftTest()
297
297
298
298
#define Left 1 << 1U
299
299
#define Right 1 >> 1U
300
+
300
301
#define Int 1 << 1
301
302
#define Long 1 << 1L
302
303
#define LongLong 1 << 1LL
303
304
#define ULong 1 << 1UL
304
305
#define ULongLong 1 << 1ULL
306
+
307
+ #define Complex ((((unsigned int)(0)) << 29U) | (((unsigned int)(1)) << 22U) | (((unsigned int)(0)) << 12U) | ((unsigned int)(0)))
305
308
" ;
306
309
307
310
var expectedOutputContents = @"namespace ClangSharp.Test
@@ -352,6 +355,9 @@ public static partial class Methods
352
355
353
356
[NativeTypeName(""#define ULongLong 1 << 1ULL"")]
354
357
public const int ULongLong = 1 << 1;
358
+
359
+ [NativeTypeName(""#define Complex ((((unsigned int)(0)) << 29U) | (((unsigned int)(1)) << 22U) | (((unsigned int)(0)) << 12U) | ((unsigned int)(0)))"")]
360
+ public const uint Complex = ((((uint)(0)) << 29) | (((uint)(1)) << 22) | (((uint)(0)) << 12) | ((uint)(0)));
355
361
}
356
362
}
357
363
" ;
You can’t perform that action at this time.
0 commit comments