fork(2) download
  1. #include <assert.h>
  2.  
  3. using namespace std;
  4.  
  5. struct A
  6. {
  7. int a_;
  8. };
  9.  
  10. struct B
  11. {
  12. int b_ {1};
  13. };
  14.  
  15. int main() {
  16. A a{5};
  17. assert(a.a_==5);
  18.  
  19. B b{};
  20. assert(b.b_==1);
  21. return 0;
  22. }
Success #stdin #stdout 0s 3092KB
stdin
Standard input is empty
stdout
Standard output is empty