[cfe-commits] r132386 - /cfe/trunk/unittests/Tooling/ASTMatchersTest.cpp
Manuel Klimek
klimek at google.com
Tue May 31 20:59:13 PDT 2011
Author: klimek
Date: Tue May 31 22:59:13 2011
New Revision: 132386
URL: http://llvm.org/viewvc/llvm-project?rev=132386&view=rev
Log:
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.
Modified:
cfe/trunk/unittests/Tooling/ASTMatchersTest.cpp
Modified: cfe/trunk/unittests/Tooling/ASTMatchersTest.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/Tooling/ASTMatchersTest.cpp?rev=132386&r1=132385&r2=132386&view=diff
==============================================================================
--- cfe/trunk/unittests/Tooling/ASTMatchersTest.cpp (original)
+++ cfe/trunk/unittests/Tooling/ASTMatchersTest.cpp Tue May 31 22:59:13 2011
@@ -783,10 +783,12 @@
"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));
More information about the cfe-commits
mailing list