From e8bdce441bd413ff91787dd4514c397bdccabf82 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Wed, 6 Aug 2008 05:32:55 +0000 Subject: Fix EmitNullInitializationToLValue for bitfield lvalues. - PR2643 llvm-svn: 54397 --- clang/test/CodeGen/PR2643-null-store-to-bitfield.c | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 clang/test/CodeGen/PR2643-null-store-to-bitfield.c (limited to 'clang/test/CodeGen/PR2643-null-store-to-bitfield.c') diff --git a/clang/test/CodeGen/PR2643-null-store-to-bitfield.c b/clang/test/CodeGen/PR2643-null-store-to-bitfield.c new file mode 100644 index 00000000000..4fef84255a5 --- /dev/null +++ b/clang/test/CodeGen/PR2643-null-store-to-bitfield.c @@ -0,0 +1,10 @@ +// RUN: clang -emit-llvm -o - %s +// PR2643 + +void foo() { + struct { + int a : 1; + int b : 1; + } entry = {0}; +} + -- cgit v1.2.3