Skip to content

Commit

Permalink
CallGraphTest.cpp: Remove invalid tests. ++S might step over F if S =…
Browse files Browse the repository at this point in the history
…= F.

MSVC Runtime detects "Assertion failed: vector iterator not incrementable"

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222233 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
chapuni committed Nov 18, 2014
1 parent 0ede3a2 commit 3b16af8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions unittests/Analysis/CallGraphTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 3b16af8

Please sign in to comment.