summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang/unittests/ASTMatchers/ASTMatchersTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/unittests/ASTMatchers/ASTMatchersTest.cpp b/clang/unittests/ASTMatchers/ASTMatchersTest.cpp
index 7f1f0831292..a7c64b3fe75 100644
--- a/clang/unittests/ASTMatchers/ASTMatchersTest.cpp
+++ b/clang/unittests/ASTMatchers/ASTMatchersTest.cpp
@@ -2014,14 +2014,14 @@ TEST(Member, MatchesInMemberFunctionCall) {
}
TEST(Member, MatchesMemberAllocationFunction) {
- EXPECT_TRUE(matches("namespace std { typedef unsigned long size_t; }"
+ EXPECT_TRUE(matches("namespace std { typedef typeof(sizeof(int)) size_t; }"
"class X { void *operator new(std::size_t); };",
method(ofClass(hasName("X")))));
EXPECT_TRUE(matches("class X { void operator delete(void*); };",
method(ofClass(hasName("X")))));
- EXPECT_TRUE(matches("namespace std { typedef unsigned long size_t; }"
+ EXPECT_TRUE(matches("namespace std { typedef typeof(sizeof(int)) size_t; }"
"class X { void operator delete[](void*, std::size_t); };",
method(ofClass(hasName("X")))));
}
OpenPOWER on IntegriCloud