aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2011-08-16 21:41:44 +0000
committerEric Christopher <echristo@apple.com>2011-08-16 21:41:44 +0000
commit2b94c6954dc4040736c378dda869b685452ce1e0 (patch)
tree9327c506bdbd965974816706957523d28b834b38
parentb7f124c7452fb81fe869dc9eb0b4f58a81c067ca (diff)
Migrate from llvm/test/FrontendC++.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137768 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/CodeGenCXX/2010-06-22-ZeroBitfield.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/CodeGenCXX/2010-06-22-ZeroBitfield.cpp b/test/CodeGenCXX/2010-06-22-ZeroBitfield.cpp
new file mode 100644
index 0000000000..c2f37f7405
--- /dev/null
+++ b/test/CodeGenCXX/2010-06-22-ZeroBitfield.cpp
@@ -0,0 +1,5 @@
+// RUN: %clang_cc1 -emit-llvm -g %s -o -
+struct s8_0 { unsigned : 0; };
+struct s8_1 { double x; };
+struct s8 { s8_0 a; s8_1 b; };
+s8 f8() { return s8(); }