When determining whether an expression refers to a bit-field, look
into the left-hand side of an assignment expression. This completes
most of PR3500; the only remaining part is to deal with the
GCC-specific implementation-defined behavior for "unsigned long" (and
other) bit-fields.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70623 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Sema/bitfield.c b/test/Sema/bitfield.c
index 526a225..655f741 100644
--- a/test/Sema/bitfield.c
+++ b/test/Sema/bitfield.c
@@ -31,6 +31,6 @@
int y;
struct {unsigned x : 2;} x2;
-// FIXME: __typeof__((x.x+=1)+1) y;
+__typeof__((x.x+=1)+1) y;
__typeof__(x.x<<1) y;
int y;