Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
clang
/
006dd8a2bd3723d4b6f3526be8f1a4dc0e9cfac3
/
.
/
test
/
Analysis
/
fields.c
blob: 72de12c4dcc1321f848ce46c3c343b0b7cd7218f [
file
] [
log
] [
blame
]
// RUN: clang -checker-cfref %s -verify &&
// RUN: clang -checker-simple %s -verify
unsigned
foo
();
typedef
struct
bf
{
unsigned
x
:
2
;
}
bf
;
void
bar
()
{
bf y
;
*(
unsigned
*)&
y
=
foo
();
y
.
x
=
1
;
}