xref: /aosp_15_r20/external/clang/test/CodeGen/blocks-aligned-byref-variable.c (revision 67e74705e28f6214e480b399dd47ea732279e315)
1 // RUN: %clang_cc1 -emit-llvm -o - -triple x86_64-apple-darwin10 -fblocks %s
2 // RUN: %clang_cc1 -emit-llvm -o - -triple i386-apple-darwin10 -fblocks %s
3 typedef int __attribute__((aligned(32)))  ai;
4 
f()5 void f() {
6   __block ai a = 10;
7 
8   ^{
9     a = 20;
10   }();
11 }
12 
g()13 void g() {
14   __block double a = 10;
15 
16   ^{
17     a = 20;
18   }();
19 }
20