summaryrefslogtreecommitdiffstats
path: root/clang/unittests
diff options
context:
space:
mode:
authorManuel Klimek <klimek@google.com>2011-06-01 03:59:13 +0000
committerManuel Klimek <klimek@google.com>2011-06-01 03:59:13 +0000
commitbc68d09abbcf9b87bf76843c7056794a14ecf66f (patch)
treec349e8c8b08fc1577a43eade22998742ac35cb46 /clang/unittests
parent18c9b37a426464040a95440c519ae925f1708cac (diff)
downloadbcm5719-llvm-bc68d09abbcf9b87bf76843c7056794a14ecf66f.tar.gz
bcm5719-llvm-bc68d09abbcf9b87bf76843c7056794a14ecf66f.zip
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.
llvm-svn: 132386
Diffstat (limited to 'clang/unittests')
-rw-r--r--clang/unittests/Tooling/ASTMatchersTest.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/clang/unittests/Tooling/ASTMatchersTest.cpp b/clang/unittests/Tooling/ASTMatchersTest.cpp
index 93a30ef5d94..933e59c9f74 100644
--- a/clang/unittests/Tooling/ASTMatchersTest.cpp
+++ b/clang/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));
OpenPOWER on IntegriCloud