From 222e2a7620e6520ffaf4fc4e69d79c18da31542e Mon Sep 17 00:00:00 2001 From: "Zancanaro; Carlo" Date: Mon, 24 Sep 2012 09:58:17 +1000 Subject: Add the clang library to the repo (with some of my changes, too). --- .../CodeGen/2008-07-22-bitfield-init-after-zero-len-array.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 clang/test/CodeGen/2008-07-22-bitfield-init-after-zero-len-array.c (limited to 'clang/test/CodeGen/2008-07-22-bitfield-init-after-zero-len-array.c') 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, -- cgit v1.2.3