aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/bitfield.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/bitfield.c')
-rw-r--r--test/Sema/bitfield.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Sema/bitfield.c b/test/Sema/bitfield.c
index 7a7f96c752..e81b802789 100644
--- a/test/Sema/bitfield.c
+++ b/test/Sema/bitfield.c
@@ -25,3 +25,7 @@ struct a {
unsigned : -2; // expected-error {{anonymous bit-field has negative width (-2)}}
float : 12; // expected-error {{anonymous bit-field has non-integral type 'float'}}
};
+
+struct b {unsigned x : 2;} x;
+__typeof__(x.x+1) y;
+int y;