Chromium Code Reviews| Index: crosstest/test_global_main.cpp |
| diff --git a/crosstest/test_global_main.cpp b/crosstest/test_global_main.cpp |
| index 5383cb7a0f1088dee990180e8e395123a7b30364..6b4eec777ed7598e65656e1bdea53f190292bd8d 100644 |
| --- a/crosstest/test_global_main.cpp |
| +++ b/crosstest/test_global_main.cpp |
| @@ -39,6 +39,11 @@ struct Data *ExternName4 = &SimpleData; |
| double ExternName5 = 3.44e26; |
| int main(int argc, char **argv) { |
| + // Prevent pnacl-opt from deleting "unused" globals. |
|
John
2016/01/04 21:33:51
why wasn't this a problem before?
Jim Stichnoth
2016/01/04 23:32:12
It wasn't a problem presumably because native and
|
| + if (argc < 0) { |
| + std::cout << &ExternName1 << &ExternName2 << &ExternName3 << &SimpleData |
| + << &ExternName4 << ExternName5; |
| + } |
| size_t TotalTests = 0; |
| size_t Passes = 0; |
| size_t Failures = 0; |