[cfe-commits] r96406 - in /cfe/trunk/test/Rewriter: rewrite-implementation.mm rewrite-unique-block-api.mm
Fariborz Jahanian
fjahanian at apple.com
Tue Feb 16 14:28:13 PST 2010
Author: fjahanian
Date: Tue Feb 16 16:27:50 2010
New Revision: 96406
URL: http://llvm.org/viewvc/llvm-project?rev=96406&view=rev
Log:
More rewriter test converted to compile with clang.
Modified:
cfe/trunk/test/Rewriter/rewrite-implementation.mm
cfe/trunk/test/Rewriter/rewrite-unique-block-api.mm
Modified: cfe/trunk/test/Rewriter/rewrite-implementation.mm
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Rewriter/rewrite-implementation.mm?rev=96406&r1=96405&r2=96406&view=diff
==============================================================================
--- cfe/trunk/test/Rewriter/rewrite-implementation.mm (original)
+++ cfe/trunk/test/Rewriter/rewrite-implementation.mm Tue Feb 16 16:27:50 2010
@@ -1,5 +1,5 @@
// RUN: %clang_cc1 -x objective-c++ -fblocks -fms-extensions -rewrite-objc %s -o %t-rw.cpp
-// RUN: %clang_cc1 -DSEL="void *" -S %t-rw.cpp
+// RUN: %clang_cc1 -fsyntax-only -Wno-address-of-temporary -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp
// radar 7649577
@interface a
Modified: cfe/trunk/test/Rewriter/rewrite-unique-block-api.mm
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Rewriter/rewrite-unique-block-api.mm?rev=96406&r1=96405&r2=96406&view=diff
==============================================================================
--- cfe/trunk/test/Rewriter/rewrite-unique-block-api.mm (original)
+++ cfe/trunk/test/Rewriter/rewrite-unique-block-api.mm Tue Feb 16 16:27:50 2010
@@ -1,5 +1,5 @@
// RUN: %clang_cc1 -x objective-c++ -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 7630551
void f(void (^b)(char c));
@@ -23,9 +23,3 @@
f(^(char x) { });
}
@end
-
-// CHECK-LP: struct __a__processStuff_block_impl_0
-// CHECK-LP: static void __a__processStuff_block_func_0
-
-// CHECK-LP: struct __b__processStuff_block_impl_0
-// CHECK-LP: static void __b__processStuff_block_func_0
More information about the cfe-commits
mailing list