Skip to content
This repository has been archived by the owner on Mar 30, 2021. It is now read-only.

Commit

Permalink
Added failing test.
Browse files Browse the repository at this point in the history
  • Loading branch information
balazske committed Mar 7, 2019
1 parent 0c38f81 commit 8cebd4d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions unittests/AST/StructuralEquivalenceTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,15 @@ TEST_F(StructuralEquivalenceFunctionTest,
EXPECT_TRUE(testStructuralMatch(t));
}

TEST_F(StructuralEquivalenceFunctionTest,
ParameterInDifferentScopeShouldBeInequal) {
auto t = makeNamedDecls(
"namespace A { class X; } void foo(A::X &x);",
"namespace B { class X; } void foo(B::X &x);",
Lang_CXX);
EXPECT_FALSE(testStructuralMatch(t));
}

struct StructuralEquivalenceCXXMethodTest : StructuralEquivalenceTest {
};

Expand Down

0 comments on commit 8cebd4d

Please sign in to comment.