summaryrefslogtreecommitdiff
path: root/lldb/test
diff options
context:
space:
mode:
authorMichael Buch <michaelbuch12@gmail.com>2023-04-24 08:29:48 -0400
committerMichael Buch <michaelbuch12@gmail.com>2023-04-24 08:33:07 -0400
commitb767b050414399940f8d7f96e4564a1e5c84879f (patch)
treeb5c71b87244ec9ada815718d0173607127c71d7c /lldb/test
parent2eb72fa9172f99658ef8968ca66129463f360b14 (diff)
downloadllvm-b767b050414399940f8d7f96e4564a1e5c84879f.tar.gz
[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]]`
Diffstat (limited to 'lldb/test')
-rw-r--r--lldb/test/API/lang/cpp/preferred_name/TestPreferredName.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/test/API/lang/cpp/preferred_name/TestPreferredName.py b/lldb/test/API/lang/cpp/preferred_name/TestPreferredName.py
index ce8be3209971..9c3f0e6a0522 100644
--- a/lldb/test/API/lang/cpp/preferred_name/TestPreferredName.py
+++ b/lldb/test/API/lang/cpp/preferred_name/TestPreferredName.py
@@ -11,6 +11,7 @@ from lldbsuite.test import decorators
class TestPreferredName(TestBase):
+ @skipIf(compiler="clang", compiler_version=['<', '16.0'])
def test_frame_var(self):
self.build()
lldbutil.run_to_source_breakpoint(self, "return", lldb.SBFileSpec("main.cpp"))
@@ -26,6 +27,7 @@ class TestPreferredName(TestBase):
self.expect("frame variable varChar", substrs=["Bar<char>"])
self.expect("frame variable varFooInt", substrs=["Foo<BarInt>"])
+ @skipIf(compiler="clang", compiler_version=['<', '16.0'])
def test_expr(self):
self.build()
lldbutil.run_to_source_breakpoint(self, "return", lldb.SBFileSpec("main.cpp"))