blob: 07d683c3526e4d0e6b57700999101854bd2f8251 [file] [log] [blame]
Benjamin Kramer0b495cd2010-06-25 12:48:07 +00001// 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
Anders Carlsson18be84c2009-09-12 02:44:18 +00003typedef int __attribute__((aligned(32))) ai;
4
5void f() {
6 __block ai a = 10;
7
8 ^{
9 a = 20;
10 }();
11}
12
Anders Carlssone0c88222009-09-13 17:55:13 +000013void g() {
14 __block double a = 10;
15
16 ^{
17 a = 20;
18 }();
19}