From: Chris Lattner Date: Thu, 6 Aug 2009 06:18:52 +0000 (+0000) Subject: add a testcase for my llvm-gcc hack. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a03a60b7177ee4cae4f5ed5d6756ad7bdf6cdffe;p=oota-llvm.git add a testcase for my llvm-gcc hack. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78289 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/FrontendC++/2009-08-05-ZeroInitWidth.cpp b/test/FrontendC++/2009-08-05-ZeroInitWidth.cpp new file mode 100644 index 00000000000..bc862e70bde --- /dev/null +++ b/test/FrontendC++/2009-08-05-ZeroInitWidth.cpp @@ -0,0 +1,12 @@ +// RUN: %llvmgxx -c -emit-llvm %s -o - +// rdar://7114564 +struct A { + unsigned long long : (sizeof(unsigned long long) * 8) - 16; +}; +struct B { + A a; +}; +struct B b = { + {} +}; +