summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorHoward Hinnant <hhinnant@apple.com>2012-01-31 20:01:06 +0000
committerHoward Hinnant <hhinnant@apple.com>2012-01-31 20:01:06 +0000
commit6953d901c3fd95e27241b305f35a0fc97bd881e6 (patch)
treed83ccddc86f0bffb58663e9b37936b46c718b7c3 /test
parent06b1ea1bbdc163008d1e7714f5f41f43908b8def (diff)
downloadlibcxxabi_35a-6953d901c3fd95e27241b305f35a0fc97bd881e6.tar.gz
Correct test bug.
git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@149412 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/test_exception_storage.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_exception_storage.cpp b/test/test_exception_storage.cpp
index 701ddf6..e2b230a 100644
--- a/test/test_exception_storage.cpp
+++ b/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;
}