Skip to content

Commit 032da99

Browse files
Michael137sivan-shani
authored andcommitted
[lldb][test] TestCppTemplateArguments.py: adjust expected type
LLVM started emitting the `DW_AT_const_value` for floating point template parameters since llvm#127045. Adjust the expected type in this test. It's still not quite correct but that requires a separate fix in LLDB.
1 parent ccbd046 commit 032da99

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lldb/test/API/lang/cpp/template-arguments/TestCppTemplateArguments.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ def test(self):
6363

6464
# FIXME: type should be Foo<float, 2.0f>
6565
# FIXME: double/float NTTP parameter values currently not supported.
66-
value = self.expect_expr("temp4", result_type="Foo<float, float>")
66+
value = self.expect_expr("temp4", result_type="Foo<float, 1073741824>")
6767
template_param_value = value.GetType().GetTemplateArgumentValue(target, 1)
68-
self.assertFalse(template_param_value)
68+
self.assertEqual(template_param_value.GetTypeName(), "float")
69+
# FIXME: this should return a float
70+
self.assertEqual(template_param_value.GetValueAsSigned(), 2)

0 commit comments

Comments
 (0)