diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-12-24 01:01:00 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-12-24 01:01:00 +0000 |
commit | 23629167fefb8117a4d2cc9213c8a29d5b4a1197 (patch) | |
tree | c410512ef1b5e0f0e81b7f333cafabc3ad716f5d /packages/Python/lldbsuite/test/expression_command | |
parent | ef5d0b5e97ec8e6fa395d377b09aa7755e345b4f (diff) |
Notes
Diffstat (limited to 'packages/Python/lldbsuite/test/expression_command')
-rw-r--r-- | packages/Python/lldbsuite/test/expression_command/radar_9673664/TestExprHelpExamples.py | 2 | ||||
-rw-r--r-- | packages/Python/lldbsuite/test/expression_command/top-level/test.cpp | 22 |
2 files changed, 12 insertions, 12 deletions
diff --git a/packages/Python/lldbsuite/test/expression_command/radar_9673664/TestExprHelpExamples.py b/packages/Python/lldbsuite/test/expression_command/radar_9673664/TestExprHelpExamples.py index a6c0c050c4681..4fc2463b25a8b 100644 --- a/packages/Python/lldbsuite/test/expression_command/radar_9673664/TestExprHelpExamples.py +++ b/packages/Python/lldbsuite/test/expression_command/radar_9673664/TestExprHelpExamples.py @@ -42,7 +42,7 @@ class Radar9673644TestCase(TestBase): # rdar://problem/9673664 lldb expression evaluation problem - self.expect('expr char c[] = "foo"; c[0]', + self.expect('expr char str[] = "foo"; str[0]', substrs=["'f'"]) # runCmd: expr char c[] = "foo"; c[0] # output: (char) $0 = 'f' diff --git a/packages/Python/lldbsuite/test/expression_command/top-level/test.cpp b/packages/Python/lldbsuite/test/expression_command/top-level/test.cpp index ce2ea3bbb1318..5a978743596a2 100644 --- a/packages/Python/lldbsuite/test/expression_command/top-level/test.cpp +++ b/packages/Python/lldbsuite/test/expression_command/top-level/test.cpp @@ -42,11 +42,11 @@ public: int i; } s = { 15 }; - int as[4] = { 2, 3, 4, 5 }; + int numbers[4] = { 2, 3, 4, 5 }; - for (signed char a : as) + for (signed char number: numbers) { - s.i -= a; + s.i -= number; } return s.i; @@ -94,14 +94,14 @@ public: int doTest() { - int a = m.memberResult(); - a += MyClass::staticResult(); - a += m.externResult(); - a += MyEnum::myEnumThree; - a += myEnumOne; - a += AnotherClass().complicatedFunction(); - a += DiamondD(3).accessor(); - return a; + int accumulator = m.memberResult(); + accumulator += MyClass::staticResult(); + accumulator += m.externResult(); + accumulator += MyEnum::myEnumThree; + accumulator += myEnumOne; + accumulator += AnotherClass().complicatedFunction(); + accumulator += DiamondD(3).accessor(); + return accumulator; } // -- |