summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/PR2643-null-store-to-bitfield.c
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2008-08-06 05:32:55 +0000
committerDaniel Dunbar <daniel@zuster.org>2008-08-06 05:32:55 +0000
commite8bdce441bd413ff91787dd4514c397bdccabf82 (patch)
tree0c650fe6cdf025712433bc90dfef4812b11a47a8 /clang/test/CodeGen/PR2643-null-store-to-bitfield.c
parent7bdaecb7f497fa82f13fb640a4bc1e6a5245ede8 (diff)
downloadbcm5719-llvm-e8bdce441bd413ff91787dd4514c397bdccabf82.tar.gz
bcm5719-llvm-e8bdce441bd413ff91787dd4514c397bdccabf82.zip
Fix EmitNullInitializationToLValue for bitfield lvalues.
- PR2643 llvm-svn: 54397
Diffstat (limited to 'clang/test/CodeGen/PR2643-null-store-to-bitfield.c')
-rw-r--r--clang/test/CodeGen/PR2643-null-store-to-bitfield.c10
1 files changed, 10 insertions, 0 deletions
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};
+}
+
OpenPOWER on IntegriCloud