fork(2) download
  1. #include <iostream>
  2.  
  3. struct Foo {
  4. Foo(int x) : x(x), y(0) { }
  5. Foo(const char* y) : x(0), y(y) { }
  6. int x;
  7. const char* y;
  8. };
  9.  
  10. void test(const std::initializer_list<Foo> & list)
  11. {
  12. }
  13.  
  14. int main()
  15. {
  16. test({42, "djigurda"});
  17. return 0;
  18. }
  19.  
Success #stdin #stdout 0s 3452KB
stdin
Standard input is empty
stdout
Standard output is empty