Fix bitfield promotions in several more cases. We don't seem to work hard enough at determining whether an expression is a bitfield or not, yet.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70613 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Sema/bitfield.c b/test/Sema/bitfield.c
index e81b802..526a225 100644
--- a/test/Sema/bitfield.c
+++ b/test/Sema/bitfield.c
@@ -29,3 +29,8 @@
struct b {unsigned x : 2;} x;
__typeof__(x.x+1) y;
int y;
+
+struct {unsigned x : 2;} x2;
+// FIXME: __typeof__((x.x+=1)+1) y;
+__typeof__(x.x<<1) y;
+int y;