fork(1) download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. private static void F() { F(); }
  6.  
  7. [System.Runtime.ExceptionServices.HandleProcessCorruptedStateExceptions]
  8. public static int Main()
  9. {
  10. try {
  11. F();
  12. } catch(StackOverflowException) {
  13. Console.WriteLine("caught");
  14. }
  15. return 0;
  16. }
  17. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
1
compilation info
prog.cs(7,25): error CS0234: The type or namespace name `ExceptionServices' does not exist in the namespace `System.Runtime'. Are you missing an assembly reference?
prog.cs(7,25): error CS0234: The type or namespace name `ExceptionServices' does not exist in the namespace `System.Runtime'. Are you missing an assembly reference?
Compilation failed: 2 error(s), 0 warnings
stdout
Standard output is empty