aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/bitfield-promote.c
blob: 42d4f5a19603fe188d90054830b28d74527902ac (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: clang -fsyntax-only -Xclang -verify %s
struct {unsigned x : 2;} x;
__typeof__((x.x+=1)+1) y;
__typeof__(x.x<<1) y;
int y;


struct { int x : 8; } x1;
long long y1;
__typeof__(((long long)x1.x + 1)) y1;