fork(18) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct Foo {
  5. Foo () : i {15} {}
  6.  
  7. int i : 5;
  8. };
  9.  
  10.  
  11.  
  12. int main() {
  13. Foo foo;
  14. cout << foo.i << endl; // 15
  15. return 0;
  16. }
Success #stdin #stdout 0s 3140KB
stdin
Standard input is empty
stdout
15