blob: 3db31fafc080325b8bf46e0f0b1b05e012eb2202 [file] [log] [blame]
Fariborz Jahanian3d145f62012-11-15 19:02:45 +00001// RUN: %clang_cc1 -fblocks -triple x86_64-apple-darwin -fencode-extended-block-signature -emit-llvm %s -o - | FileCheck %s
Tim Northover931a4fe2013-08-12 12:51:05 +00002// RUN: %clang_cc1 -fblocks -triple x86_64-apple-darwin -emit-llvm %s -o - | FileCheck %s -check-prefix=CHECK-BRIEF
Fariborz Jahanian06cffc02012-11-14 23:11:38 +00003// rdar://12109031
4
5@class NSString, NSArray;
6
7typedef NSString*(^BBB)(NSArray*);
8
9int main ()
10{
11 BBB b1;
12 ^(BBB arg1, double arg2){ return b1; }(0, 3.14);
13}
14// CHECK: @{{.*}} = private unnamed_addr constant [64 x i8] c"@?<@\22NSString\22@?@\22NSArray\22>24@?0@?<@\22NSString\22@?@\22NSArray\22>8d16\00"
Fariborz Jahanian3d145f62012-11-15 19:02:45 +000015// CHECK-BRIEF: @{{.*}} = private unnamed_addr constant [14 x i8] c"@?24@?0@?8d16\00"