summaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/2004-11-25-UnnamedBitfieldPadding.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGen/2004-11-25-UnnamedBitfieldPadding.c')
-rw-r--r--clang/test/CodeGen/2004-11-25-UnnamedBitfieldPadding.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/CodeGen/2004-11-25-UnnamedBitfieldPadding.c b/clang/test/CodeGen/2004-11-25-UnnamedBitfieldPadding.c
new file mode 100644
index 0000000..a6af2a5
--- /dev/null
+++ b/clang/test/CodeGen/2004-11-25-UnnamedBitfieldPadding.c
@@ -0,0 +1,8 @@
+// RUN: %clang_cc1 -emit-llvm %s -o /dev/null
+// This is a testcase for PR461
+typedef struct {
+ unsigned min_align: 1;
+ unsigned : 1;
+} addr_diff_vec_flags;
+
+addr_diff_vec_flags X;