summaryrefslogtreecommitdiff
path: root/test/Rewriter/objc-modern-StretAPI.mm
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2012-06-29 19:55:46 +0000
committerFariborz Jahanian <fjahanian@apple.com>2012-06-29 19:55:46 +0000
commit6734ec41ab596088fd157b127f98aeae59ce8e6d (patch)
treeea083a4b29f59a6b8ce976802d1fd1ef173d5a45 /test/Rewriter/objc-modern-StretAPI.mm
parent49f6dacd450dca1cbffc4d7ef561442f653899e3 (diff)
downloadclang-6734ec41ab596088fd157b127f98aeae59ce8e6d.tar.gz
objective-c modern translator: synthesize argument type
correctly for blocks and function pointer arguments in the written constructor. // rdar://11359268 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159456 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Rewriter/objc-modern-StretAPI.mm')
-rw-r--r--test/Rewriter/objc-modern-StretAPI.mm3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/Rewriter/objc-modern-StretAPI.mm b/test/Rewriter/objc-modern-StretAPI.mm
index d469dd7862..129b56cbe9 100644
--- a/test/Rewriter/objc-modern-StretAPI.mm
+++ b/test/Rewriter/objc-modern-StretAPI.mm
@@ -3,6 +3,7 @@
// rdar://11359268
extern "C" void *sel_registerName(const char *);
+typedef unsigned long size_t;
union U {
double d1;
@@ -35,6 +36,8 @@ struct S foo () {
S s3 = [PI() VAMeth : 0, "hello", "there"];
+ S s4 = [PI() VAMeth : 2, ^{}, &foo];
+
return [PI() Meth1];
}