summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/bitfield-layout.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGenCXX/bitfield-layout.cpp')
-rw-r--r--clang/test/CodeGenCXX/bitfield-layout.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/bitfield-layout.cpp b/clang/test/CodeGenCXX/bitfield-layout.cpp
new file mode 100644
index 00000000000..c77c925d876
--- /dev/null
+++ b/clang/test/CodeGenCXX/bitfield-layout.cpp
@@ -0,0 +1,9 @@
+// RUN: %clang_cc1 %s -triple=x86_64-apple-darwin10 -emit-llvm -o - | FileCheck %s
+
+// CHECK: = type { i32, [4 x i8] }
+union Test1 {
+ int a;
+ int b: 39;
+};
+
+Test1 t1;
OpenPOWER on IntegriCloud