diff options
| author | Anders Carlsson <andersca@mac.com> | 2009-09-13 17:55:13 +0000 |
|---|---|---|
| committer | Anders Carlsson <andersca@mac.com> | 2009-09-13 17:55:13 +0000 |
| commit | ccbabc9645329bbb05b8fc3d50c694f28f284698 (patch) | |
| tree | 64dee13356b8169af6a9b179108c2d303cf657b3 /clang/test/CodeGen/blocks-aligned-byref-variable.c | |
| parent | 512e60ac35a6e2b39fd1488cc5eb43cdf495e365 (diff) | |
| download | bcm5719-llvm-ccbabc9645329bbb05b8fc3d50c694f28f284698.tar.gz bcm5719-llvm-ccbabc9645329bbb05b8fc3d50c694f28f284698.zip | |
Fix another byref bug. This should hopefully get QuickLookPlugins building successfully.
llvm-svn: 81681
Diffstat (limited to 'clang/test/CodeGen/blocks-aligned-byref-variable.c')
| -rw-r--r-- | clang/test/CodeGen/blocks-aligned-byref-variable.c | 10 |
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; + }(); +} |

