Fix LLVM linker flags for 6.0.
[mono-project.git] / mcs / tests / test-814.cs
blob8003ad6509aa861fd1f83b1d0c947ce909481202
1 // Compiler options: -r:$REF_DIR/Mono.Cecil.dll
3 using System;
4 using Mono.Cecil;
6 class Test
8 public static string A
10 get { return ""; }
13 public string B
15 get { return ""; }
18 public static int Main ()
20 var assembly = AssemblyDefinition.ReadAssembly (typeof (Test).Assembly.Location);
21 var t = assembly.MainModule.GetType ("Test");
22 foreach (var p in t.Properties)
24 switch (p.Name) {
25 case "A":
26 if (!p.HasThis)
27 break;
29 return 1;
30 case "B":
31 if (p.HasThis)
32 break;
34 return 2;
35 default:
36 return 3;
40 return 0;