diff options
Diffstat (limited to 'clang/test/CodeGen/blocks-aligned-byref-variable.c')
-rw-r--r-- | clang/test/CodeGen/blocks-aligned-byref-variable.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/test/CodeGen/blocks-aligned-byref-variable.c b/clang/test/CodeGen/blocks-aligned-byref-variable.c new file mode 100644 index 00000000000..975c03a43c1 --- /dev/null +++ b/clang/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; + }(); +} + |