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;
}