Correct test bug.

llvm-svn: 149412
This commit is contained in:
Howard Hinnant 2012-01-31 20:01:06 +00:00
parent 31becd7c88
commit f8d292eb08
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}