diff options
author | Eric Christopher <echristo@apple.com> | 2011-08-16 21:41:46 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2011-08-16 21:41:46 +0000 |
commit | ffe57aafe6b3b034547831134f7899848a88353e (patch) | |
tree | 799b43e52181b3ef90f7a300afc0e55ba9d6efd6 | |
parent | 2b94c6954dc4040736c378dda869b685452ce1e0 (diff) |
Migrate test from llvm/test/FrontendC++.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137769 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/CodeGenCXX/2010-06-22-BitfieldInit.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/CodeGenCXX/2010-06-22-BitfieldInit.cpp b/test/CodeGenCXX/2010-06-22-BitfieldInit.cpp new file mode 100644 index 0000000000..f82e527844 --- /dev/null +++ b/test/CodeGenCXX/2010-06-22-BitfieldInit.cpp @@ -0,0 +1,20 @@ +// RUN: %clang_cc1 -emit-llvm -g %s -o - +struct TEST2 +{ + int subid:32; + int :0; +}; + +typedef struct _TEST3 +{ + TEST2 foo; + TEST2 foo2; +} TEST3; + +TEST3 test = + { + {0}, + {0} + }; + +int main() { return 0; } |