diff options
author | Vedant Kumar <vsk@apple.com> | 2018-01-25 21:20:29 +0000 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2018-01-25 21:20:29 +0000 |
commit | c2ca1261a2e7d547ecdfe0ddc7db97adc9d40d47 (patch) | |
tree | 2441e32840d800308c11523e3d6267321120c1bc /lldb/packages/Python/lldbsuite/test/functionalities/non-overlapping-index-variable-i | |
parent | 4af8836398de6b8a72afe61a893c798795ebe4ec (diff) | |
download | bcm5719-llvm-c2ca1261a2e7d547ecdfe0ddc7db97adc9d40d47.tar.gz bcm5719-llvm-c2ca1261a2e7d547ecdfe0ddc7db97adc9d40d47.zip |
[test] Fix a test that never compiled under -fmodules
This test #include's stdio.h, which, on at least two bots results in a
module import of MacTypes.h (due to weird SDK layering issues), which
causes the test to fail to compile.
Just don't #include stdio.h, as it's not needed for the test.
llvm-svn: 323467
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/functionalities/non-overlapping-index-variable-i')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/functionalities/non-overlapping-index-variable-i/main.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/non-overlapping-index-variable-i/main.cpp b/lldb/packages/Python/lldbsuite/test/functionalities/non-overlapping-index-variable-i/main.cpp index b4f519cd25a..2171a2648bd 100644 --- a/lldb/packages/Python/lldbsuite/test/functionalities/non-overlapping-index-variable-i/main.cpp +++ b/lldb/packages/Python/lldbsuite/test/functionalities/non-overlapping-index-variable-i/main.cpp @@ -6,7 +6,6 @@ // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// -#include <stdio.h> class Point { public: @@ -37,15 +36,11 @@ int main(int argc, char const *argv[]) { ptr[i]->point.y = i+1; } - printf("Finished populating data.\n"); for (int i = 0; i < 1000; ++i) { bool dump = argc > 1; // Set breakpoint here. // Evaluate a couple of expressions (2*1000 = 2000 exprs): // expr ptr[i]->point.x // expr ptr[i]->point.y - if (dump) { - printf("data[%d] = %d (%d, %d)\n", i, ptr[i]->id, ptr[i]->point.x, ptr[i]->point.y); - } } return 0; } |