From 43aa1c302b31492ab0abfbf656b06ca446d93b3a Mon Sep 17 00:00:00 2001 From: Fariborz Jahanian Date: Mon, 16 Apr 2012 22:14:01 +0000 Subject: modern objective-c translator: translation of implicit cast to/from block pointer types. // rdar://11202764 Also, many more modern translator tests. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154869 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Rewriter/blockcast3.mm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'test/Rewriter/blockcast3.mm') diff --git a/test/Rewriter/blockcast3.mm b/test/Rewriter/blockcast3.mm index 8b35528cfb..ceafcff3b0 100644 --- a/test/Rewriter/blockcast3.mm +++ b/test/Rewriter/blockcast3.mm @@ -1,5 +1,8 @@ -// RUN: %clang_cc1 -x objective-c++ -fblocks -fms-extensions -rewrite-objc -fobjc-fragile-abi %s -o %t-rw.cpp +// RUN: %clang_cc1 -E %s -o %t.mm +// RUN: %clang_cc1 -x objective-c++ -fblocks -fms-extensions -rewrite-objc -fobjc-fragile-abi %t.mm -o %t-rw.cpp // RUN: FileCheck -check-prefix LP --input-file=%t-rw.cpp %s +// RUN: %clang_cc1 -x objective-c++ -fblocks -fms-extensions -rewrite-objc %t.mm -o %t-modern-rw.cpp +// RUN: FileCheck -check-prefix LP --input-file=%t-modern-rw.cpp %s // radar 7607781 typedef struct { @@ -20,4 +23,4 @@ void f(const void **arg) { }); } -// CHECK-LP: (struct __Block_byref_q_0 *)&q +// CHECK-LP: (__Block_byref_q_0 *)&q -- cgit v1.2.3