blob: f7bbc3224457723b15b89bbe7816fe2b0d331874 [file] [log] [blame]
Mike Stumpc0c0ef02009-04-10 23:09:55 +00001// RUN: clang-cc %s -emit-llvm -o %t -fblocks &&
2// RUN: grep "_Block_object_dispose" %t | count 2 &&
3// RUN: grep "__copy_helper_block_" %t | count 2 &&
4// RUN: grep "__destroy_helper_block_" %t | count 2 &&
5// RUN: grep "__Block_byref_id_object_copy_" %t | count 0 &&
6// RUN: grep "__Block_byref_id_object_dispose_" %t | count 0 &&
7// RUN: grep "i32 135)" %t | count 0 &&
8// RUN: grep "_Block_object_assign" %t | count 2
9
10@interface NSDictionary @end
11
12void test1(NSDictionary * dict) {
13 ^{ (void)dict; }();
14}