diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2010-02-16 22:13:48 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2010-02-16 22:13:48 +0000 |
commit | 264e15902f2a539b42e88366ad19787e612b2094 (patch) | |
tree | 549441a0adb754d7e4b58dc1735c594dd279ee8c | |
parent | 2504941793b549323f9d29c62507cf21d865fade (diff) |
With addition of -Wno-address-of-temporary (thank you Doug) we can now
have rewriter test cases which pass the .cpp file through clang
and also test c++ aspect of clang.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96405 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Rewriter/rewrite-block-pointer.mm | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/Rewriter/rewrite-block-pointer.mm b/test/Rewriter/rewrite-block-pointer.mm index 9d07038bd2..229eb89500 100644 --- a/test/Rewriter/rewrite-block-pointer.mm +++ b/test/Rewriter/rewrite-block-pointer.mm @@ -1,8 +1,9 @@ // RUN: %clang_cc1 -x objective-c++ -Wno-return-type -fblocks -fms-extensions -rewrite-objc %s -o %t-rw.cpp -// RUN: FileCheck -check-prefix LP --input-file=%t-rw.cpp %s +// RUN: %clang_cc1 -fsyntax-only -Wno-address-of-temporary -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp // radar 7638400 -// FIXME. Arrange this test's rewritten source to compile with clang +typedef void * id; + @interface X @end @@ -14,8 +15,6 @@ static void enumerateIt(void (^block)(id, id, char *)) { } @end -// CHECK-LP: static void enumerateIt(void (*)(id, id, char *)); - // radar 7651312 void apply(void (^block)(int)); |