2008-07-21 Marek Safar <marek.safar@gmail.com>
authorMarek Safar <marek.safar@gmail.com>
Mon, 21 Jul 2008 15:09:52 +0000 (15:09 -0000)
committerMarek Safar <marek.safar@gmail.com>
Mon, 21 Jul 2008 15:09:52 +0000 (15:09 -0000)
A test for bug #410369

svn path=/trunk/mcs/; revision=108357

mcs/tests/test-656-lib.cs [new file with mode: 0755]
mcs/tests/test-656.cs [new file with mode: 0755]
mcs/tests/ver-il-gmcs.xml

diff --git a/mcs/tests/test-656-lib.cs b/mcs/tests/test-656-lib.cs
new file mode 100755 (executable)
index 0000000..3a76bb8
--- /dev/null
@@ -0,0 +1,6 @@
+// Compiler options: -target:library
+
+public class Foo
+{
+       public string this[params string[] types] { get { return ""; }}
+}
diff --git a/mcs/tests/test-656.cs b/mcs/tests/test-656.cs
new file mode 100755 (executable)
index 0000000..5775c43
--- /dev/null
@@ -0,0 +1,9 @@
+// Compiler options: -r:test-656-lib.dll
+
+class Goo
+{
+       static void Main ()
+       {
+               string s = new Foo () ["foo"];
+       }
+}
index 01f17eaa102b202c5424a205c81cd88bd1da074f..5ec810474b8282a5b864b197707aaad665c88be8 100644 (file)
       </method>
     </type>
   </test>
+  <test name="test-656.cs">
+    <type name="Goo">
+      <method name="Void .ctor()">
+        <size>7</size>
+      </method>
+      <method name="Void Main()">
+        <size>26</size>
+      </method>
+    </type>
+  </test>
   <test name="test-66.cs">
     <type name="Y">
       <method name="Void .ctor()">