[cfe-commits] r96405 - /cfe/trunk/test/Rewriter/rewrite-block-pointer.mm
Fariborz Jahanian
fjahanian at apple.com
Tue Feb 16 14:13:59 PST 2010
Author: fjahanian
Date: Tue Feb 16 16:13:48 2010
New Revision: 96405
URL: http://llvm.org/viewvc/llvm-project?rev=96405&view=rev
Log:
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.
Modified:
cfe/trunk/test/Rewriter/rewrite-block-pointer.mm
Modified: cfe/trunk/test/Rewriter/rewrite-block-pointer.mm
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Rewriter/rewrite-block-pointer.mm?rev=96405&r1=96404&r2=96405&view=diff
==============================================================================
--- cfe/trunk/test/Rewriter/rewrite-block-pointer.mm (original)
+++ cfe/trunk/test/Rewriter/rewrite-block-pointer.mm Tue Feb 16 16:13:48 2010
@@ -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 @@
}
@end
-// CHECK-LP: static void enumerateIt(void (*)(id, id, char *));
-
// radar 7651312
void apply(void (^block)(int));
More information about the cfe-commits
mailing list