Add to tests/internal

Turn repro code into a proper test, and delete superfluous files from Odin root.
This commit is contained in:
Jeroen van Rijn
2025-06-26 14:47:38 +02:00
parent 8410871cb8
commit 1fbc5641c0
4 changed files with 34 additions and 259 deletions

View File

@@ -1249,7 +1249,6 @@ gb_internal bool is_type_unsigned(Type *t) {
return (t->Basic.flags & BasicFlag_Unsigned) != 0;
}
if (t->kind == Type_Enum) {
// TODO(slowhei): Is an enum's base type guaranteed to be TypeKind::Basic? Even if its backing type is implicitly int?
return (t->Enum.base_type->Basic.flags & BasicFlag_Unsigned) != 0;
}
return false;