repo.or.cz
/
clang
/
acc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add include needed for MSVC.
[clang/acc.git]
/
test
/
Sema
/
bitfield-promote.c
blob
42d4f5a19603fe188d90054830b28d74527902ac
1
// RUN: clang -fsyntax-only -Xclang -verify %s
2
struct
{
unsigned
x
:
2
;}
x
;
3
__typeof__
((
x
.
x
+=
1
)+
1
)
y
;
4
__typeof__
(
x
.
x
<<
1
)
y
;
5
int
y
;
6
7
8
struct
{
int
x
:
8
; }
x1
;
9
long long
y1
;
10
__typeof__
(((
long long
)
x1
.
x
+
1
))
y1
;