summaryrefslogtreecommitdiffstats
path: root/test/Rewriter/rewrite-unique-block-api.mm
blob: 780a3f0a5e2ba33c41761ba99a47f333c800e69d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// 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
// radar 7630551

void f(void (^b)(char c));

@interface a
- (void)processStuff;
@end

@implementation a
- (void)processStuff {
    f(^(char x) { });
}
@end

@interface b
- (void)processStuff;
@end

@implementation b
- (void)processStuff {
    f(^(char x) { });
}
@end

// CHECK-LP: struct __a__processStuff_block_impl_0
// CHECK-LP: static void __a__processStuff_block_func_0

// CHECK-LP: struct __b__processStuff_block_impl_0
// CHECK-LP: static void __b__processStuff_block_func_0
OpenPOWER on IntegriCloud