X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Ftests%2Fgtest-262.cs;h=9a71d8b6accb4c03b7e0d239b99cfd4e907f9ad5;hb=2d23bfcbce7a3f7e54dcd5911adb88b244baca35;hp=51a31a954bbe7c78d2f0bd8ed9b1ae4487166d3d;hpb=c29282519b48d5fbfd73dd2bd1306a7844174f29;p=mono.git diff --git a/mcs/tests/gtest-262.cs b/mcs/tests/gtest-262.cs index 51a31a954bb..9a71d8b6acc 100644 --- a/mcs/tests/gtest-262.cs +++ b/mcs/tests/gtest-262.cs @@ -3,11 +3,18 @@ using System.Reflection; using System.Runtime.InteropServices; public class Test { + public enum ParamEnum { + None = 0, + Foo = 1, + Bar = 2 + }; + public void f1 ([System.Runtime.InteropServices.DefaultParameterValue (null)] object x) {} public void f2 ([System.Runtime.InteropServices.DefaultParameterValue (null)] string x) {} public void f3 ([System.Runtime.InteropServices.DefaultParameterValue (null)] Test x) {} public void f4 ([System.Runtime.InteropServices.DefaultParameterValue (1)] int x) {} public void f5 ([System.Runtime.InteropServices.DefaultParameterValue ((short) 1)] short x) {} + public void f6 ([DefaultParameterValue (ParamEnum.Foo)] ParamEnum n) {} static void Main () {