
This brings our tree to NetBSD 7.0, as found on -current on the 10-10-2015. This updates: - LLVM to 3.6.1 - GCC to GCC 5.1 - Replace minix/commands/zdump with usr.bin/zdump - external/bsd/libelf has moved to /external/bsd/elftoolchain/ - Import ctwm - Drop sprintf from libminc Change-Id: I149836ac18e9326be9353958bab9b266efb056f0
30 lines
1.1 KiB
Objective-C
30 lines
1.1 KiB
Objective-C
// RUN: %clang_cc1 -triple i386-apple-ios -fblocks -emit-llvm -o - %s -Wno-objc-root-class \
|
|
// RUN: | FileCheck %s
|
|
|
|
void __assert_rtn(const char *, const char *, int, const char *);
|
|
|
|
@interface Test
|
|
- (void (^)(void)) mangle;
|
|
@end
|
|
|
|
@implementation Test
|
|
- (void (^)(void)) mangle {
|
|
return ^() {
|
|
void (^b)(void) = ^() {
|
|
__assert_rtn(__func__, __FILE__, __LINE__, "mangle");
|
|
};
|
|
};
|
|
}
|
|
@end
|
|
|
|
// CHECK: @"__func__.__14-[Test mangle]_block_invoke_2" = private unnamed_addr constant [34 x i8] c"__14-[Test mangle]_block_invoke_2\00", align 1
|
|
// CHECK: @.str = private unnamed_addr constant {{.*}}, align 1
|
|
// CHECK: @.str1 = private unnamed_addr constant [7 x i8] c"mangle\00", align 1
|
|
|
|
// CHECK: define internal void @"__14-[Test mangle]_block_invoke"(i8* %.block_descriptor)
|
|
|
|
// CHECK: define internal void @"__14-[Test mangle]_block_invoke_2"(i8* %.block_descriptor){{.*}}{
|
|
// CHECK: call void @__assert_rtn(i8* getelementptr inbounds ([34 x i8]* @"__func__.__14-[Test mangle]_block_invoke_2", i32 0, i32 0), i8* getelementptr inbounds {{.*}}, i32 14, i8* getelementptr inbounds ([7 x i8]* @.str1, i32 0, i32 0))
|
|
// CHECK: }
|
|
|