blob: d8379b9f9d14cf867952c55c7be667bcf9bac682 [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +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}