-
Notifications
You must be signed in to change notification settings - Fork 15.3k
[lldb] Fix TypeSystemClang::GetBasicTypeEnumeration for 128-bit int types #162278
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 5 commits
04fea01
7092c65
89f0306
02885e1
46d5e22
def1853
bd140fb
18ddeec
736539e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,11 +5,14 @@ | |
|
|
||
|
|
||
| class TestCase(TestBase): | ||
| def test(self): | ||
| """Test that SBType.GetBasicType unwraps typedefs.""" | ||
| def setUp(self): | ||
|
||
| TestBase.setUp(self) | ||
| self.build() | ||
| lldbutil.run_to_source_breakpoint(self, "return", lldb.SBFileSpec("main.cpp")) | ||
|
|
||
| def testTypedefUnwrapping(self): | ||
| """Test that SBType.GetBasicType unwraps typedefs.""" | ||
|
|
||
| a = self.frame().FindVariable("a") | ||
| self.assertTrue(a) | ||
|
|
||
|
|
@@ -28,3 +31,8 @@ def test(self): | |
| self.assertEqual(b.GetType().GetBasicType(), int_basic_type) | ||
| self.assertEqual(c.GetType().GetBasicType(), int_basic_type) | ||
| self.assertEqual(d.GetType().GetBasicType(), int_basic_type) | ||
|
|
||
| def testBasicTypeSize(self): | ||
|
||
| """Check the size of the chosen basic types.""" | ||
| self.assertEqual(self.target().FindFirstType("__int128").size, 16) | ||
| self.assertEqual(self.target().FindFirstType("unsigned __int128").size, 16) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we also add the same assertions for
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've pushed a commit that adds this kind of changes as well. |
||
Uh oh!
There was an error while loading. Please reload this page.