diff options
author | Anders Carlsson <andersca@mac.com> | 2009-09-12 02:44:18 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-09-12 02:44:18 +0000 |
commit | 18be84c37b2b796fddfb36447c2b29141d7fdd18 (patch) | |
tree | 0871e8d92d16b24197e130876a07b8860a691e99 /test/CodeGen/blocks-aligned-byref-variable.c | |
parent | 7dfa4079f4b37507048b19bfc693d3b015d9dd11 (diff) | |
download | clang-18be84c37b2b796fddfb36447c2b29141d7fdd18.tar.gz |
Add support for __block variables with alignment greater than __alignof(void *).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81602 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/blocks-aligned-byref-variable.c')
-rw-r--r-- | test/CodeGen/blocks-aligned-byref-variable.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/blocks-aligned-byref-variable.c b/test/CodeGen/blocks-aligned-byref-variable.c new file mode 100644 index 0000000000..975c03a43c --- /dev/null +++ b/test/CodeGen/blocks-aligned-byref-variable.c @@ -0,0 +1,11 @@ +// RUN: clang-cc -emit-llvm -o - +typedef int __attribute__((aligned(32))) ai; + +void f() { + __block ai a = 10; + + ^{ + a = 20; + }(); +} + |