blob: 279f21a528224949ba04c3bb5f71a66aa699f6a8 [file] [log] [blame]
Fariborz Jahanian8604fae2009-12-14 17:13:18 +00001// RUN: clang -cc1 -triple x86_64-apple-darwin9 -emit-llvm -fblocks -o %t %s
Daniel Dunbar4fcfde42009-11-08 01:45:36 +00002// RUN: grep 'object_assign' %t | count 11
Mike Stump3899a7f2009-06-05 23:26:36 +00003// RUN: grep 'object_dispose' %t | count 29
4
5int main() {
6 typedef id aid __attribute__((aligned(1)));
7 __block aid a1;
8 __block id a2 __attribute__((aligned(2)));
9 __block id a3 __attribute__((aligned(4)));
10 __block id a4 __attribute__((aligned(8)));
11 __block id a5, a6, a7;
12 __block void (^b)();
13 ^{ a1=a2=a3=a4=a5=a6=a7=0; b = 0; }();
14 return 0;
15}