#pragma pack(1)
struct{unsigned short f1:5;unsigned short f2:6;}x;
f(){x.f2=1;}


syntax highlighted by Code2HTML, v. 0.9.1