mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 12:26:52 +08:00
Make bucket_count() greater-equal assertions portable. Patch from STL@microsoft.com
llvm-svn: 276580
This commit is contained in:
@@ -44,7 +44,7 @@ int main()
|
||||
P(80, "eighty"),
|
||||
};
|
||||
const C c(std::begin(a), std::end(a));
|
||||
assert(c.bucket_count() >= 11);
|
||||
assert(c.bucket_count() >= 8);
|
||||
}
|
||||
#if TEST_STD_VER >= 11
|
||||
{
|
||||
@@ -69,7 +69,7 @@ int main()
|
||||
P(80, "eighty"),
|
||||
};
|
||||
const C c(std::begin(a), std::end(a));
|
||||
assert(c.bucket_count() >= 11);
|
||||
assert(c.bucket_count() >= 8);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -44,6 +44,6 @@ int main()
|
||||
P(80, "eighty"),
|
||||
};
|
||||
const C c(std::begin(a), std::end(a));
|
||||
assert(c.bucket_count() >= 11);
|
||||
assert(c.bucket_count() >= 8);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@ int main()
|
||||
P(80)
|
||||
};
|
||||
const C c(std::begin(a), std::end(a));
|
||||
assert(c.bucket_count() >= 11);
|
||||
assert(c.bucket_count() >= 8);
|
||||
}
|
||||
#if TEST_STD_VER >= 11
|
||||
{
|
||||
@@ -73,7 +73,7 @@ int main()
|
||||
P(80)
|
||||
};
|
||||
const C c(std::begin(a), std::end(a));
|
||||
assert(c.bucket_count() >= 11);
|
||||
assert(c.bucket_count() >= 8);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@ int main()
|
||||
P(80)
|
||||
};
|
||||
const C c(std::begin(a), std::end(a));
|
||||
assert(c.bucket_count() >= 11);
|
||||
assert(c.bucket_count() >= 8);
|
||||
}
|
||||
#if TEST_STD_VER >= 11
|
||||
{
|
||||
@@ -71,7 +71,7 @@ int main()
|
||||
P(80)
|
||||
};
|
||||
const C c(std::begin(a), std::end(a));
|
||||
assert(c.bucket_count() >= 11);
|
||||
assert(c.bucket_count() >= 8);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user