Skip to content

Commit

Permalink
[lldb][test] Narrow enum test xfail to clang < 19.0 (llvm#98616)
Browse files Browse the repository at this point in the history
Since llvm#98335 clang adds DW_AT_type, unless strict DWARF is requested.
  • Loading branch information
DavidSpickett authored and aaryanshukla committed Jul 14, 2024
1 parent 89b7f84 commit c71ee04
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@


class TestBitfieldEnum(TestBase):
# clang's DWARF v2 output is missing DW_AT_type which causes unsigned_max to
# appear as -1 instead of the "max" enumerator, whose value is 3.
@skipIf(dwarf_version=["<", "3"], compiler="clang")
# Prior to clang-19, clang's DWARF v2 is missing missing DW_AT_type which
# causes unsigned_max to appear as -1 instead of the "max" enumerator, whose
# value is 3. From 19 onward, DW_AT_type is added as long as strict DWARF
# is not enabled.
@skipIf(dwarf_version=["<", "3"], compiler="clang", compiler_version=["<", "19.0"])
def test_bitfield_enums(self):
self.build()

Expand Down

0 comments on commit c71ee04

Please sign in to comment.