Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
clang
/
5c456fe4d354dab9e8a1309aefe828ea7b6d6f26
/
.
/
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
;
}