diff options
author | Howard Hinnant <hhinnant@apple.com> | 2012-01-31 20:01:06 +0000 |
---|---|---|
committer | Howard Hinnant <hhinnant@apple.com> | 2012-01-31 20:01:06 +0000 |
commit | f8d292eb08ed7acca651f2ff5b56fb489e1c7505 (patch) | |
tree | 478ead4431be00f1afc0a0797f8987f22a5f0f25 /libcxxabi/test/test_exception_storage.cpp | |
parent | 31becd7c88028f07645be49b69f653130e78de1b (diff) | |
download | bcm5719-llvm-f8d292eb08ed7acca651f2ff5b56fb489e1c7505.tar.gz bcm5719-llvm-f8d292eb08ed7acca651f2ff5b56fb489e1c7505.zip |
Correct test bug.
llvm-svn: 149412
Diffstat (limited to 'libcxxabi/test/test_exception_storage.cpp')
-rw-r--r-- | libcxxabi/test/test_exception_storage.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxxabi/test/test_exception_storage.cpp b/libcxxabi/test/test_exception_storage.cpp index 701ddf6c69d..e2b230ad7a6 100644 --- a/libcxxabi/test/test_exception_storage.cpp +++ b/libcxxabi/test/test_exception_storage.cpp @@ -63,8 +63,8 @@ int main ( int argc, char *argv [] ) { // print_sizes ( thread_globals, thread_globals + NUMTHREADS ); std::sort ( thread_globals, thread_globals + NUMTHREADS ); - for ( int i = 1; i < NUMTHREADS; ++i ) { - if ( thread_globals [ i - 1 ] == thread_globals [ i ] ) + for ( int i = 1; i < NUMTHREADS; ++i ) + if ( thread_globals [ i - 1 ] == thread_globals [ i ] ) { std::cerr << "Duplicate thread globals (" << i-1 << " and " << i << ")" << std::endl; retVal = 2; } |