Skip to content

Commit b767b05

Browse files
committed
[lldb][tests] TestPreferredName.py: Fix for older compilers
This only works as of D145803, where we re-point the `DW_AT_type` based on existence of `[[clang::preferred_name]]`
1 parent 2eb72fa commit b767b05

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lldb/test/API/lang/cpp/preferred_name/TestPreferredName.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
class TestPreferredName(TestBase):
1313

14+
@skipIf(compiler="clang", compiler_version=['<', '16.0'])
1415
def test_frame_var(self):
1516
self.build()
1617
lldbutil.run_to_source_breakpoint(self, "return", lldb.SBFileSpec("main.cpp"))
@@ -26,6 +27,7 @@ def test_frame_var(self):
2627
self.expect("frame variable varChar", substrs=["Bar<char>"])
2728
self.expect("frame variable varFooInt", substrs=["Foo<BarInt>"])
2829

30+
@skipIf(compiler="clang", compiler_version=['<', '16.0'])
2931
def test_expr(self):
3032
self.build()
3133
lldbutil.run_to_source_breakpoint(self, "return", lldb.SBFileSpec("main.cpp"))

0 commit comments

Comments
 (0)