blob: 16da55ed6322c8a06bb3d990da536e4f04cefeb1 [file] [log] [blame]
Daniel Dunbar4fcfde42009-11-08 01:45:36 +00001// RUN: clang-cc -triple x86_64-apple-darwin9 -emit-llvm -fblocks -o %t %s
2// 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}