Skip to content

Instantly share code, notes, and snippets.

@jerstlouis
Created November 1, 2013 02:53
Show Gist options
  • Save jerstlouis/7260385 to your computer and use it in GitHub Desktop.
Save jerstlouis/7260385 to your computer and use it in GitHub Desktop.
#include <stdio.h>
typedef enum { false, true } bool;
typedef struct
{
bool a:1;
} TestStruct;
int main()
{
int a = 1;
TestStruct s;
s.a = 1;
a = s.a;
printf("%d\n", a);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment