From ccbabc9645329bbb05b8fc3d50c694f28f284698 Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Sun, 13 Sep 2009 17:55:13 +0000 Subject: Fix another byref bug. This should hopefully get QuickLookPlugins building successfully. llvm-svn: 81681 --- clang/test/CodeGen/blocks-aligned-byref-variable.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'clang/test/CodeGen/blocks-aligned-byref-variable.c') 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; + }(); +} -- cgit v1.2.3