summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/blocks-aligned-byref-variable.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGen/blocks-aligned-byref-variable.c')
-rw-r--r--clang/test/CodeGen/blocks-aligned-byref-variable.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/clang/test/CodeGen/blocks-aligned-byref-variable.c b/clang/test/CodeGen/blocks-aligned-byref-variable.c
index 975c03a43c1..1ae30625415 100644
--- a/clang/test/CodeGen/blocks-aligned-byref-variable.c
+++ b/clang/test/CodeGen/blocks-aligned-byref-variable.c
@@ -1,4 +1,5 @@
-// RUN: clang-cc -emit-llvm -o -
+// RUN: clang-cc -emit-llvm -o - -triple x86_64-apple-darwin10 &&
+// RUN: clang-cc -emit-llvm -o - -triple i386-apple-darwin10
typedef int __attribute__((aligned(32))) ai;
void f() {
@@ -9,3 +10,10 @@ void f() {
}();
}
+void g() {
+ __block double a = 10;
+
+ ^{
+ a = 20;
+ }();
+}
OpenPOWER on IntegriCloud