[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / CodeGen / blocks-aligned-byref-variable.c
blobfc78b7fe78f352346accf16ec695a2d1fc03e01c
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;
5 void f(void) {
6 __block ai a = 10;
8 ^{
9 a = 20;
10 }();
13 void g(void) {
14 __block double a = 10;
17 a = 20;
18 }();