diff options
| author | Robin Voetter <robin@voetter.nl> | 2023-05-18 12:27:16 +0200 |
|---|---|---|
| committer | Robin Voetter <robin@voetter.nl> | 2023-05-20 17:30:21 +0200 |
| commit | 7d519b3383431df48a41d6b32520e5c5e3d77612 (patch) | |
| tree | 00bee0e877593683b7906ef348e40872db4dd30a /test/behavior/enum.zig | |
| parent | 6e3770e970dbf460271a0e0cb60c2bf40a7c861e (diff) | |
| download | zig-7d519b3383431df48a41d6b32520e5c5e3d77612.tar.gz zig-7d519b3383431df48a41d6b32520e5c5e3d77612.zip | |
spirv: use intInfo instead of arithmeticTypeInfo in airIntCast
This ensures that we can also cast enums and error sets here. In the future
this function will need to be changed to support composite and strange
integers, but that is fine.
Diffstat (limited to 'test/behavior/enum.zig')
| -rw-r--r-- | test/behavior/enum.zig | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/test/behavior/enum.zig b/test/behavior/enum.zig index 44a6026f2b..097caaad19 100644 --- a/test/behavior/enum.zig +++ b/test/behavior/enum.zig @@ -20,8 +20,6 @@ test "enum to int" { } fn testIntToEnumEval(x: i32) !void { - if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; - try expect(@intToEnum(IntToEnumNumber, x) == IntToEnumNumber.Three); } const IntToEnumNumber = enum { Zero, One, Two, Three, Four }; |
