diff options
author | Manuel Klimek <klimek@google.com> | 2011-06-01 03:59:13 +0000 |
---|---|---|
committer | Manuel Klimek <klimek@google.com> | 2011-06-01 03:59:13 +0000 |
commit | 7264ab76f2039403bac61f503a99720f516e4d60 (patch) | |
tree | 0f39d1f930c5a695746c59e37ed730895cfb3dd0 /unittests | |
parent | d06f59833a659c045dfa6c5962949d1fb04b8fbf (diff) |
Fix broken test on windows. To get operator new working, we need size_t, for which we need to figure out a way to resolve standard include paths in the test.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@132386 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r-- | unittests/Tooling/ASTMatchersTest.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/unittests/Tooling/ASTMatchersTest.cpp b/unittests/Tooling/ASTMatchersTest.cpp index 93a30ef5d9..933e59c9f7 100644 --- a/unittests/Tooling/ASTMatchersTest.cpp +++ b/unittests/Tooling/ASTMatchersTest.cpp @@ -783,10 +783,12 @@ TEST(Matcher, OverloadedOperatorCall) { "bool operator!(Y x) { return false; }; " "Y y; bool c = !y;", OpCall)); // No match -- special operators like "new", "delete" - // FIXME: figure out why these does not match? - EXPECT_TRUE(NotMatches("class Y { }; " - "void *operator new(unsigned long size) { return 0; } " - "Y *y = new Y;", OpCall)); + // FIXME: operator new takes size_t, for which we need stddef.h, for which + // we need to figure out include paths in the test. + // EXPECT_TRUE(NotMatches("#include <stddef.h>\n" + // "class Y { }; " + // "void *operator new(size_t size) { return 0; } " + // "Y *y = new Y;", OpCall)); EXPECT_TRUE(NotMatches("class Y { }; " "void operator delete(void *p) { } " "void a() {Y *y = new Y; delete y;}", OpCall)); |