1 // RUN: %llvmgcc %s -S -emit-llvm -O2 -o %t.s
2 // RUN: grep {call i32 .*printf.*argc} %t.s | count 3
3 // RUN: not grep __block_holder_tmp %t.s
6 // All of these should be inlined equivalently into a single printf call.
8 static int fun(int x
) {
12 static int block(int x
) {
13 return (^(int x
){return x
+1;})(x
);
16 static void print(int result
) {
17 printf("%d\n", result
);
20 int main (int argc
, const char * argv
[]) {
24 int (^block_inline
)(int) = ^(int x
){return x
+1;};
25 print(block_inline(x
));