fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. class s
  5. {
  6. public:
  7. unsigned i:1;
  8. };
  9.  
  10. int main()
  11. {
  12. s x;
  13. x.i=1;
  14. cout<<x.i<<endl;
  15. return 0;
  16. }
Success #stdin #stdout 0.01s 2680KB
stdin
Standard input is empty
stdout
1