Created
August 21, 2016 05:18
-
-
Save alanduan/b9f13e5099de768a61657dbb10dab8b1 to your computer and use it in GitHub Desktop.
gotcha~
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
struct one_bit_t | |
{ | |
signed value : 1; | |
}; | |
int main() | |
{ | |
one_bit_t a; | |
a.value = true; | |
std::cout << a.value << std::endl; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment