mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:29:58 +00:00
CallGraphTest.cpp: Remove invalid tests. ++S might step over F if S == F.
MSVC Runtime detects "Assertion failed: vector iterator not incrementable" llvm-svn: 222233
This commit is contained in:
parent
a43009a5dc
commit
b0b8e68019
@ -35,15 +35,12 @@ template <typename Ty> void canSpecializeGraphTraitsIterators(Ty *G) {
|
||||
|
||||
auto S = GraphTraits<NodeTy *>::child_begin(N);
|
||||
auto F = GraphTraits<NodeTy *>::child_end(N);
|
||||
auto Y = ++S;
|
||||
|
||||
// Should be able to iterate over immediate successors of a node.
|
||||
static_assert(std::is_same<decltype(*S), NodeTy *>::value,
|
||||
"Node type does not match");
|
||||
static_assert(std::is_same<decltype(*F), NodeTy *>::value,
|
||||
"Node type does not match");
|
||||
static_assert(std::is_same<decltype(*Y), NodeTy *>::value,
|
||||
"Node type does not match");
|
||||
}
|
||||
|
||||
TEST(CallGraphTest, GraphTraitsSpecialization) {
|
||||
|
Loading…
Reference in New Issue
Block a user