[cfe-commits] r94368 - /cfe/trunk/test/Rewriter/rewrite-typeof.mm

Fariborz Jahanian fjahanian at apple.com
Sun Jan 24 10:40:06 PST 2010


Author: fjahanian
Date: Sun Jan 24 12:40:06 2010
New Revision: 94368

URL: http://llvm.org/viewvc/llvm-project?rev=94368&view=rev
Log:
Enhance test to check on expected rewritten output.


Modified:
    cfe/trunk/test/Rewriter/rewrite-typeof.mm

Modified: cfe/trunk/test/Rewriter/rewrite-typeof.mm
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Rewriter/rewrite-typeof.mm?rev=94368&r1=94367&r2=94368&view=diff

==============================================================================
--- cfe/trunk/test/Rewriter/rewrite-typeof.mm (original)
+++ cfe/trunk/test/Rewriter/rewrite-typeof.mm Sun Jan 24 12:40:06 2010
@@ -1,4 +1,5 @@
-// RUN: %clang_cc1 -x objective-c++ -fblocks -fms-extensions -rewrite-objc -o - %s
+// 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
 
 extern "C" {
 extern "C" void *_Block_copy(const void *aBlock);
@@ -18,3 +19,5 @@
     return 0;
 }
 
+// CHECK-LP: ((void (^)(void))_Block_copy((const void *)(b)))
+





More information about the cfe-commits mailing list