[cfe-commits] [libcxxabi] r149412 - /libcxxabi/trunk/test/test_exception_storage.cpp

Howard Hinnant hhinnant at apple.com
Tue Jan 31 12:01:06 PST 2012


Author: hhinnant
Date: Tue Jan 31 14:01:06 2012
New Revision: 149412

URL: http://llvm.org/viewvc/llvm-project?rev=149412&view=rev
Log:
Correct test bug.

Modified:
    libcxxabi/trunk/test/test_exception_storage.cpp

Modified: libcxxabi/trunk/test/test_exception_storage.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/test/test_exception_storage.cpp?rev=149412&r1=149411&r2=149412&view=diff
==============================================================================
--- libcxxabi/trunk/test/test_exception_storage.cpp (original)
+++ libcxxabi/trunk/test/test_exception_storage.cpp Tue Jan 31 14:01:06 2012
@@ -63,8 +63,8 @@
         
 //  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;
             }





More information about the cfe-commits mailing list