-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for using enums in case statement
- Loading branch information
Showing
4 changed files
with
34 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
Cesium.CodeGen.Tests/verified/CodeGenEnumTests.EnumInCase.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
System.Void <Module>::test() | ||
Locals: | ||
System.Int32 V_0 | ||
System.Int32 V_1 | ||
IL_0000: ldc.i4.s 42 | ||
IL_0002: stloc.0 | ||
IL_0003: ldloc.0 | ||
IL_0004: stloc.1 | ||
IL_0005: ldloc.1 | ||
IL_0006: ldc.i4.2 | ||
IL_0007: ceq | ||
IL_0009: brfalse IL_0013 | ||
IL_000e: br IL_0019 | ||
IL_0013: nop | ||
IL_0014: br IL_001f | ||
IL_0019: nop | ||
IL_001a: br IL_001f | ||
IL_001f: nop | ||
IL_0020: ret |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters