[LoongArch64] Part-5:add loongarch support in some files for LoongArch64. (#21769)
[mono-project.git] / mcs / tests / test-throw-expr-02.cs
blob515d687ac625298644e1ff3a64e63a0599e60b2b
1 using System;
3 class Program
5 public static int Main ()
7 Console.WriteLine (M (1));
8 try {
9 Console.WriteLine (M (null));
10 } catch (Exception) {
11 Console.WriteLine ("thrown");
12 return 0;
15 return 1;
18 static string M (object data)
20 return data?.ToString () ?? throw null;