fork(2) download
  1. using System;
  2.  
  3. class A
  4. {
  5. public A(ref int x)
  6. {
  7. x++;
  8. }
  9. }
  10.  
  11. public class Test
  12. {
  13. public static void Main()
  14. {
  15. int x = 0;
  16. for (int i = 0; i < 100000000; i++)
  17. new A(ref x);
  18. Console.WriteLine(x);
  19. }
  20. }
Success #stdin #stdout 0.48s 131520KB
stdin
Standard input is empty
stdout
100000000