Commit bd8f05b0 authored by Matthias Braun's avatar Matthias Braun
Browse files

fehler45

[r15234]
parent 9405193a
#include <stdio.h>
struct bitfield {
unsigned int code : 8;
unsigned int bit1 : 1;
unsigned int bit2 : 1;
unsigned int bit3 : 1;
} bf = {7, 1, 0, 1 };
int main()
{
printf("Res: %d (should be 7)\n", bf.code);
return 0;
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment