[Lldb-commits] [lldb] r321277 - Make one more test redhat-compatible

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Thu Dec 21 07:52:59 PST 2017


Author: labath
Date: Thu Dec 21 07:52:59 2017
New Revision: 321277

URL: http://llvm.org/viewvc/llvm-project?rev=321277&view=rev
Log:
Make one more test redhat-compatible

This test was also using "a" in an expression.

Modified:
    lldb/trunk/packages/Python/lldbsuite/test/expression_command/top-level/test.cpp

Modified: lldb/trunk/packages/Python/lldbsuite/test/expression_command/top-level/test.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/expression_command/top-level/test.cpp?rev=321277&r1=321276&r2=321277&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/expression_command/top-level/test.cpp (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/expression_command/top-level/test.cpp Thu Dec 21 07:52:59 2017
@@ -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;
 }
 
 // --




More information about the lldb-commits mailing list