diff options
Diffstat (limited to 'clang/test/CodeGen/2008-07-22-bitfield-init-after-zero-len-array.c')
-rw-r--r-- | clang/test/CodeGen/2008-07-22-bitfield-init-after-zero-len-array.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/CodeGen/2008-07-22-bitfield-init-after-zero-len-array.c b/clang/test/CodeGen/2008-07-22-bitfield-init-after-zero-len-array.c new file mode 100644 index 0000000..33bd800 --- /dev/null +++ b/clang/test/CodeGen/2008-07-22-bitfield-init-after-zero-len-array.c @@ -0,0 +1,12 @@ +// RUN: %clang_cc1 -triple=i686-apple-darwin9 -emit-llvm -o - %s | FileCheck %s + +struct et7 { + float lv7[0]; + char mv7:6; +} yv7 = { + {}, + 52, +}; + +// CHECK: @yv7 = global +// CHECK: i8 52, |