================ @@ -313,6 +313,16 @@ TEST_F(TestTypeSystemClang, TestGetEnumIntegerTypeBasicTypes) { } } +TEST_F(TestTypeSystemClang, TestEnumerationValueSign) { + CompilerType enum_type = m_ast->CreateEnumerationType( + "my_enum_signed", m_ast->GetTranslationUnitDecl(), + OptionalClangModuleID(), Declaration(), + m_ast->GetBasicType(lldb::eBasicTypeSignedChar), false); + auto *enum_decl = m_ast->AddEnumerationValueToEnumerationType( + enum_type, nullptr, "minus_one", -1, 8); ---------------- Michael137 wrote:
Nit: ```suggestion auto *enum_decl = m_ast->AddEnumerationValueToEnumerationType( enum_type, Declaration(), "minus_one", -1, 8); ``` https://github.com/llvm/llvm-project/pull/120794 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits