aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/2004-11-25-UnnamedBitfieldPadding.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/2004-11-25-UnnamedBitfieldPadding.c')
-rw-r--r--test/CodeGen/2004-11-25-UnnamedBitfieldPadding.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/2004-11-25-UnnamedBitfieldPadding.c b/test/CodeGen/2004-11-25-UnnamedBitfieldPadding.c
new file mode 100644
index 000000000000..a6af2a574411
--- /dev/null
+++ b/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;