[2020-02] Avoid following invalid pointers in mono_w32process_get_modules on Darwin...
[mono-project.git] / mono / tests / bug-467456.cs
blob1d8bf3f431d99f1e0cff0c2f7e89dc601fc394c2
1 using System;
2 using System.Collections.Generic;
4 class Program
6 static void Trigger () {
7 List<string> inners = new List<string> ();
8 inners.Add ("Failed to run update to completion");
9 throw new Exception ();
12 static int Main (string[] args)
14 try {
15 Trigger ();
16 } catch (TypeLoadException e) {
17 return 1;
18 } catch (Exception e) {
19 return 0;
21 return 1;