Skip to content

Commit c471d36

Browse files
[lldb][test] Narrow enum test xfail to clang < 19.0 (#98616)
Since #98335 clang adds DW_AT_type, unless strict DWARF is requested.
1 parent 8681202 commit c471d36

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lldb/test/API/commands/expression/bitfield_enums/TestBitfieldEnums.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@
1010

1111

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

0 commit comments

Comments
 (0)