mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-19 03:24:09 +00:00
Support: Stop stringifying DW_LANG_{lo,hi}_user
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228451 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -42,4 +42,14 @@ TEST(DwarfTest, getTag) {
|
||||
EXPECT_EQ(DW_TAG_invalid, getTag("DW_TAG_user_base"));
|
||||
}
|
||||
|
||||
TEST(DwarfTest, LanguageStringOnInvalid) {
|
||||
// This is invalid, so it shouldn't be stringified.
|
||||
EXPECT_EQ(nullptr, LanguageString(0));
|
||||
|
||||
// These aren't really tags: they describe ranges within tags. They
|
||||
// shouldn't be stringified either.
|
||||
EXPECT_EQ(nullptr, LanguageString(DW_LANG_lo_user));
|
||||
EXPECT_EQ(nullptr, LanguageString(DW_LANG_hi_user));
|
||||
}
|
||||
|
||||
} // end namespace
|
||||
|
Reference in New Issue
Block a user