[runtime] Accomplish BITCODE build symbol sharing with only make (#3329)
[mono-project.git] / mono / tests / bug-508538.cs
blobf387175821e3b596420820568f801d2f310c63f3
1 using System;
2 using System.Reflection;
4 public class HostExpression {}
5 public class OMetaStream<T> {}
6 public class OMetaList<T> {}
8 public class OMetaParser {
9 public virtual bool NameFirst (OMetaStream<char> inputStream, out object result) {
10 result = null;
11 Console.WriteLine ("ok");
12 return true;
17 public class Driver {
18 static int Main () {
19 var f = new OMetaParser ();
20 var m = typeof (OMetaParser).GetMethod ("NameFirst");
22 var arg0 = new OMetaStream<char> ();
23 var arg1 = new OMetaList<HostExpression> ();
25 bool res = (bool)m.Invoke (f, new object[] { arg0, arg1 });
26 return res ? 0 : 1;