aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/blocks-aligned-byref-variable.c
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-09-13 17:55:13 +0000
committerAnders Carlsson <andersca@mac.com>2009-09-13 17:55:13 +0000
commite0c8822eec9d3b2afa62c5e6168a8a8f52aeb2c4 (patch)
tree5d69ce320bed90af9971bf8766772f40e48d0fb1 /test/CodeGen/blocks-aligned-byref-variable.c
parent0b4b41099b435344006148d2a55c429582d11853 (diff)
Fix another byref bug. This should hopefully get QuickLookPlugins building successfully.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81681 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/blocks-aligned-byref-variable.c')
-rw-r--r--test/CodeGen/blocks-aligned-byref-variable.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/test/CodeGen/blocks-aligned-byref-variable.c b/test/CodeGen/blocks-aligned-byref-variable.c
index 975c03a43c..1ae3062541 100644
--- a/test/CodeGen/blocks-aligned-byref-variable.c
+++ b/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;
+ }();
+}