Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mcs/errors/ChangeLog19
-rwxr-xr-xmcs/errors/cs1570-10.cs30
-rwxr-xr-xmcs/errors/cs1570-11.cs54
-rwxr-xr-xmcs/errors/cs1570-2.cs32
-rwxr-xr-xmcs/errors/cs1570-3.cs36
-rwxr-xr-xmcs/errors/cs1570-4.cs36
-rwxr-xr-xmcs/errors/cs1570-5.cs15
-rwxr-xr-xmcs/errors/cs1570-6.cs30
-rwxr-xr-xmcs/errors/cs1570-7.cs24
-rwxr-xr-xmcs/errors/cs1570-8.cs30
-rwxr-xr-xmcs/errors/cs1570-9.cs30
-rwxr-xr-xmcs/errors/cs1570.cs32
-rwxr-xr-xmcs/errors/cs1571.cs18
-rwxr-xr-xmcs/errors/cs1572.cs10
-rwxr-xr-xmcs/errors/cs1573.cs10
-rwxr-xr-xmcs/errors/cs1574-2.cs8
-rwxr-xr-xmcs/errors/cs1574-3.cs10
-rwxr-xr-xmcs/errors/cs1574-4.cs8
-rwxr-xr-xmcs/errors/cs1574-5.cs11
-rwxr-xr-xmcs/errors/cs1574.cs6
-rwxr-xr-xmcs/errors/cs1580-2.cs6
-rwxr-xr-xmcs/errors/cs1580.cs10
-rwxr-xr-xmcs/errors/cs1581-2.cs12
-rwxr-xr-xmcs/errors/cs1581.cs12
-rwxr-xr-xmcs/errors/cs1584-2.cs7
-rwxr-xr-xmcs/errors/cs1584-3.cs7
-rwxr-xr-xmcs/errors/cs1584-4.cs6
-rwxr-xr-xmcs/errors/cs1584.cs6
-rwxr-xr-xmcs/errors/cs1587-10.cs9
-rwxr-xr-xmcs/errors/cs1587-11.cs12
-rwxr-xr-xmcs/errors/cs1587-12.cs10
-rwxr-xr-xmcs/errors/cs1587-13.cs11
-rwxr-xr-xmcs/errors/cs1587-14.cs9
-rwxr-xr-xmcs/errors/cs1587-15.cs11
-rwxr-xr-xmcs/errors/cs1587-16.cs14
-rwxr-xr-xmcs/errors/cs1587-17.cs13
-rwxr-xr-xmcs/errors/cs1587-18.cs14
-rwxr-xr-xmcs/errors/cs1587-19.cs13
-rwxr-xr-xmcs/errors/cs1587-2.cs6
-rwxr-xr-xmcs/errors/cs1587-20.cs14
-rwxr-xr-xmcs/errors/cs1587-21.cs14
-rwxr-xr-xmcs/errors/cs1587-22.cs13
-rwxr-xr-xmcs/errors/cs1587-23.cs14
-rwxr-xr-xmcs/errors/cs1587-24.cs12
-rwxr-xr-xmcs/errors/cs1587-25.cs13
-rwxr-xr-xmcs/errors/cs1587-26.cs10
-rwxr-xr-xmcs/errors/cs1587-27.cs12
-rwxr-xr-xmcs/errors/cs1587-28.cs17
-rwxr-xr-xmcs/errors/cs1587-3.cs6
-rwxr-xr-xmcs/errors/cs1587-4.cs10
-rwxr-xr-xmcs/errors/cs1587-5.cs11
-rwxr-xr-xmcs/errors/cs1587-6.cs12
-rwxr-xr-xmcs/errors/cs1587-7.cs11
-rwxr-xr-xmcs/errors/cs1587-8.cs12
-rwxr-xr-xmcs/errors/cs1587-9.cs8
-rwxr-xr-xmcs/errors/cs1587.cs5
-rwxr-xr-xmcs/errors/cs1589.cs16
-rwxr-xr-xmcs/errors/cs1590-2.cs15
-rwxr-xr-xmcs/errors/cs1590-3.cs20
-rwxr-xr-xmcs/errors/cs1590.cs11
-rwxr-xr-xmcs/errors/cs1591-10.cs15
-rwxr-xr-xmcs/errors/cs1591-11.cs13
-rwxr-xr-xmcs/errors/cs1591-12.cs13
-rwxr-xr-xmcs/errors/cs1591-13.cs15
-rwxr-xr-xmcs/errors/cs1591-14.cs16
-rwxr-xr-xmcs/errors/cs1591-15.cs15
-rwxr-xr-xmcs/errors/cs1591-16.cs15
-rwxr-xr-xmcs/errors/cs1591-17.cs15
-rwxr-xr-xmcs/errors/cs1591-18.cs15
-rwxr-xr-xmcs/errors/cs1591-2.cs9
-rwxr-xr-xmcs/errors/cs1591-3.cs9
-rwxr-xr-xmcs/errors/cs1591-4.cs13
-rwxr-xr-xmcs/errors/cs1591-5.cs7
-rwxr-xr-xmcs/errors/cs1591-6.cs13
-rwxr-xr-xmcs/errors/cs1591-7.cs13
-rwxr-xr-xmcs/errors/cs1591-8.cs15
-rwxr-xr-xmcs/errors/cs1591-9.cs13
-rwxr-xr-xmcs/errors/cs1591.cs10
-rwxr-xr-xmcs/errors/cs1592.cs16
79 files changed, 1143 insertions, 0 deletions
diff --git a/mcs/errors/ChangeLog b/mcs/errors/ChangeLog
index 59829dd9b31..ab8e7b401ef 100644
--- a/mcs/errors/ChangeLog
+++ b/mcs/errors/ChangeLog
@@ -1,3 +1,22 @@
+2004-12-02 Atsushi Enomoto <atsushi@ximian.com>
+
+ * cs1570.cs, cs1570-2.cs, cs1570-3.cs, cs1570-4.cs, cs1570-5.cs,
+ cs1570-6.cs, cs1570-7.cs, cs1570-8.cs, cs1570-9.cs, cs1570-10.cs,
+ cs1570-11.cs, cs1571.cs, cs1572.cs, cs1573.cs, cs1574.cs,
+ cs1574-2.cs, cs1574-3.cs, cs1574-4.cs, cs1574-5.cs, cs1580.cs,
+ cs1580-2.cs, cs1581.cs, cs1581-2.cs, cs1584.cs, cs1584-2.cs,
+ cs1584-3.cs, cs1584-4.cs, cs1587.cs, cs1587-2.cs, cs1587-3.cs,
+ cs1587-4.cs, cs1587-5.cs, cs1587-6.cs, cs1587-7.cs, cs1587-8.cs,
+ cs1587-9.cs, cs1587-10.cs, cs1587-11.cs, cs1587-12.cs, cs1587-13.cs,
+ cs1587-14.cs, cs1587-15.cs, cs1587-16.cs, cs1587-17.cs, cs1587-18.cs,
+ cs1587-19.cs, cs1587-20.cs, cs1587-21.cs, cs1587-22.cs, cs1587-23.cs,
+ cs1587-24.cs, cs1587-25.cs, cs1587-26.cs, cs1587-27.cs, cs1587-28.cs,
+ cs1589.cs, cs1590.cs, cs1590-2.cs, cs1590-3.cs, cs1591.cs,
+ cs1591-2.cs, cs1591-3.cs, cs1591-4.cs, cs1591-5.cs, cs1591-6.cs,
+ cs1591-7.cs, cs1591-8.cs, cs1591-9.cs, cs1591-10.cs, cs1591-11.cs,
+ cs1591-12.cs, cs1591-13.cs, cs1591-14.cs, cs1591-15.cs, cs1591-16.cs,
+ cs1591-17.cs, cs1591-18.cs, cs1592.cs : added tests for /doc feature.
+
2004-11-26 Raja R Harinath <rharinath@novell.com>
* Makefile (DISTFILES): Add do-tests.pl.
diff --git a/mcs/errors/cs1570-10.cs b/mcs/errors/cs1570-10.cs
new file mode 100755
index 00000000000..06d4a97ff07
--- /dev/null
+++ b/mcs/errors/cs1570-10.cs
@@ -0,0 +1,30 @@
+// Compiler options: -doc:dummy.xml -warn:1 -warnaserror
+using System;
+
+namespace Testing
+{
+ public class Test
+ {
+ public static void Main ()
+ {
+ }
+
+ /// <summary>
+ /// comment for private field
+ /// </summary>
+ private string PrivateField;
+
+ /// <summary>
+ /// incorrect markup comment for private field
+ /// </incorrect>
+ private string PrivateField2;
+
+ /**
+ <summary>
+ Javadoc comment for private field
+ </summary>
+ */
+ private string PrivateField3;
+ }
+}
+
diff --git a/mcs/errors/cs1570-11.cs b/mcs/errors/cs1570-11.cs
new file mode 100755
index 00000000000..1adf424e2bb
--- /dev/null
+++ b/mcs/errors/cs1570-11.cs
@@ -0,0 +1,54 @@
+// Compiler options: -doc:dummy.xml -warn:1 -warnaserror
+using System;
+
+namespace Testing
+{
+ public class Test
+ {
+ public static void Main ()
+ {
+ }
+
+ /// <summary>
+ /// comment for public property
+ /// </summary>
+ public string PublicProperty {
+ /// <summary>
+ /// On public getter - no effect
+ /// </summary>
+ get { return null; }
+ /// <summary>
+ /// On public setter - no effect
+ /// </summary>
+ set { }
+ }
+
+ /// <summary>
+ /// incorrect comment for public property
+ /// </incorrect>
+ public string PublicProperty2 {
+ get { return null; }
+ }
+
+ /**
+ <summary>
+ Javadoc comment for public property
+ </summary>
+ */
+ public string PublicProperty3 {
+ /**
+ <summary>
+ On public getter - no effect
+ </summary>
+ */
+ get { return null; }
+ /**
+ <summary>
+ On public setter - no effect
+ </summary>
+ */
+ set { }
+ }
+ }
+}
+
diff --git a/mcs/errors/cs1570-2.cs b/mcs/errors/cs1570-2.cs
new file mode 100755
index 00000000000..8e111b73ef2
--- /dev/null
+++ b/mcs/errors/cs1570-2.cs
@@ -0,0 +1,32 @@
+// Compiler options: -doc:dummy.xml -warn:1 -warnaserror
+using System;
+
+namespace Testing
+{
+ /// <summary>
+ /// comment on class
+ /// </summary>
+ public class Test
+ {
+ public static void Main ()
+ {
+ }
+ }
+
+ /// <summary>
+ /// Incorrect comment markup.
+ /// </incorrect>
+ public class Test2
+ {
+ }
+
+ /**
+ <summary>
+ another Java-style documentation style
+ </summary>
+ */
+ public class Test3
+ {
+ }
+}
+
diff --git a/mcs/errors/cs1570-3.cs b/mcs/errors/cs1570-3.cs
new file mode 100755
index 00000000000..72c625b5c1d
--- /dev/null
+++ b/mcs/errors/cs1570-3.cs
@@ -0,0 +1,36 @@
+// Compiler options: -doc:dummy.xml -warn:1 -warnaserror
+using System;
+
+namespace Testing
+{
+ /// <summary>
+ /// comment for struct
+ /// </summary>
+ public struct StructTest
+ {
+ }
+
+ /// <summary>
+ /// incorrect markup comment for struct
+ /// </incorrect>
+ public struct StructTest2
+ {
+ }
+
+ /**
+ <summary>
+ Java style commet
+ </summary>
+ */
+ public struct StructTest3
+ {
+ }
+
+ public class Test
+ {
+ public static void Main ()
+ {
+ }
+ }
+}
+
diff --git a/mcs/errors/cs1570-4.cs b/mcs/errors/cs1570-4.cs
new file mode 100755
index 00000000000..341c98c78b9
--- /dev/null
+++ b/mcs/errors/cs1570-4.cs
@@ -0,0 +1,36 @@
+// Compiler options: -doc:dummy.xml -warn:1 -warnaserror
+using System;
+
+namespace Testing
+{
+ /// <summary>
+ /// comment for interface
+ /// </summary>
+ public interface InterfaceTest
+ {
+ }
+
+ /// <summary>
+ /// incorrect markup comment for interface
+ /// </incorrect>
+ public interface InterfaceTest2
+ {
+ }
+
+ /**
+ <summary>
+ Java style comment for interface
+ </summary>
+ */
+ public interface InterfaceTest3
+ {
+ }
+
+ public class Test
+ {
+ public static void Main ()
+ {
+ }
+ }
+}
+
diff --git a/mcs/errors/cs1570-5.cs b/mcs/errors/cs1570-5.cs
new file mode 100755
index 00000000000..e8f363f12fb
--- /dev/null
+++ b/mcs/errors/cs1570-5.cs
@@ -0,0 +1,15 @@
+// Compiler options: -doc:dummy.xml -warn:1 -warnaserror
+using System;
+
+namespace Testing
+{
+ /// <summary>
+ /// comment for enum type
+ /// </incorrect>
+ enum EnumTest2
+ {
+ Foo,
+ Bar,
+ }
+}
+
diff --git a/mcs/errors/cs1570-6.cs b/mcs/errors/cs1570-6.cs
new file mode 100755
index 00000000000..4e5c26828fe
--- /dev/null
+++ b/mcs/errors/cs1570-6.cs
@@ -0,0 +1,30 @@
+// Compiler options: -doc:dummy.xml -warn:1 -warnaserror
+using System;
+
+namespace Testing
+{
+ /// <summary>
+ /// comment for delegate type
+ /// </summary>
+ public delegate void MyDelegate (object o, EventArgs e);
+
+ /// <summary>
+ /// comment for delegate type
+ /// </incorrect>
+ public delegate void MyDelegate2 (object o, EventArgs e);
+
+ /**
+ <summary>
+ Javadoc comment for delegate type
+ </summary>
+ */
+ public delegate void MyDelegate3 (object o, EventArgs e);
+
+ public class Test
+ {
+ public static void Main ()
+ {
+ }
+ }
+}
+
diff --git a/mcs/errors/cs1570-7.cs b/mcs/errors/cs1570-7.cs
new file mode 100755
index 00000000000..075a6bb9a81
--- /dev/null
+++ b/mcs/errors/cs1570-7.cs
@@ -0,0 +1,24 @@
+// Compiler options: -doc:dummy.xml -warn:1 -warnaserror
+using System;
+
+namespace Testing
+{
+ /// comment without markup on class - it is allowed
+ public class Test
+ {
+ public static void Main ()
+ {
+ }
+ }
+
+ /// <6roken> broken markup
+ public class Test2
+ {
+ }
+
+ /// <dont-forget-close-tag>
+ public class Test3
+ {
+ }
+}
+
diff --git a/mcs/errors/cs1570-8.cs b/mcs/errors/cs1570-8.cs
new file mode 100755
index 00000000000..6c715704673
--- /dev/null
+++ b/mcs/errors/cs1570-8.cs
@@ -0,0 +1,30 @@
+// Compiler options: -doc:dummy.xml -warn:1 -warnaserror
+using System;
+
+namespace Testing
+{
+ public class Test
+ {
+ /// <summary>
+ /// comment for const declaration
+ /// </summary>
+ const string Constant = "CONSTANT STRING";
+
+ /// <summary>
+ /// invalid comment for const declaration
+ /// </invalid>
+ const string Constant2 = "CONSTANT STRING";
+
+ /**
+ <summary>
+ Javaism comment for const declaration
+ </summary>
+ */
+ const string Constant3 = "CONSTANT STRING";
+
+ public static void Main ()
+ {
+ }
+ }
+}
+
diff --git a/mcs/errors/cs1570-9.cs b/mcs/errors/cs1570-9.cs
new file mode 100755
index 00000000000..8b070d729d9
--- /dev/null
+++ b/mcs/errors/cs1570-9.cs
@@ -0,0 +1,30 @@
+// Compiler options: -doc:dummy.xml -warn:1 -warnaserror
+using System;
+
+namespace Testing
+{
+ public class Test
+ {
+ /// <summary>
+ /// comment for public field
+ /// </summary>
+ public string PublicField;
+
+ /// <summary>
+ /// comment for public field
+ /// </invalid>
+ public string PublicField2;
+
+ /**
+ <summary>
+ Javadoc comment for public field
+ </summary>
+ */
+ public string PublicField3;
+
+ public static void Main ()
+ {
+ }
+ }
+}
+
diff --git a/mcs/errors/cs1570.cs b/mcs/errors/cs1570.cs
new file mode 100755
index 00000000000..4f7e6f4d783
--- /dev/null
+++ b/mcs/errors/cs1570.cs
@@ -0,0 +1,32 @@
+// Compiler options: -doc:dummy.xml -warnaserror -warn:1
+using System;
+
+namespace Testing
+{
+ /// <summary>
+ /// comment on class
+ /// </summary>
+ public class Test
+ {
+ public static void Main ()
+ {
+ }
+ }
+
+ /// <summary>
+ /// Incorrect comment markup.
+ /// </incorrect>
+ public class Test2
+ {
+ }
+
+ /**
+ <summary>
+ another Java-style documentation style
+ </summary>
+ */
+ public class Test3
+ {
+ }
+}
+
diff --git a/mcs/errors/cs1571.cs b/mcs/errors/cs1571.cs
new file mode 100755
index 00000000000..0f583c775fb
--- /dev/null
+++ b/mcs/errors/cs1571.cs
@@ -0,0 +1,18 @@
+// Compiler options: -doc:dummy.xml -warn:2 -warnaserror
+namespace Testing
+{
+ /// test class
+ public class Test
+ {
+ public static void Main ()
+ {
+ }
+
+ /// <param>anonymous</param>
+ public void Foo (int i) {}
+
+ /// <param name='i'>correct</param>
+ /// <param name='i'>duplicate</param>
+ public void Bar (int i) {}
+ }
+}
diff --git a/mcs/errors/cs1572.cs b/mcs/errors/cs1572.cs
new file mode 100755
index 00000000000..4eb657f64b5
--- /dev/null
+++ b/mcs/errors/cs1572.cs
@@ -0,0 +1,10 @@
+// Compiler options: -doc:dummy.xml -warn:2 -warnaserror
+namespace Testing
+{
+ /// test class
+ public class Test
+ {
+ /// <param name='mismatch'>mismatch</param>
+ public void Baz (int i) {}
+ }
+}
diff --git a/mcs/errors/cs1573.cs b/mcs/errors/cs1573.cs
new file mode 100755
index 00000000000..93847d24eda
--- /dev/null
+++ b/mcs/errors/cs1573.cs
@@ -0,0 +1,10 @@
+// Compiler options: -doc:dummy.xml -warn:4 -warnaserror
+namespace Testing
+{
+ /// test class
+ public class Test
+ {
+ /// <param name='i'>correct</param>
+ public void Baz (int i, int j) {}
+ }
+}
diff --git a/mcs/errors/cs1574-2.cs b/mcs/errors/cs1574-2.cs
new file mode 100755
index 00000000000..54dbb429029
--- /dev/null
+++ b/mcs/errors/cs1574-2.cs
@@ -0,0 +1,8 @@
+// Compiler options: -doc:dummy.xml -warnaserror -warn:1
+using System;
+
+/// <seealso cref="Method(System.String)"/>
+public class Test
+{
+}
+
diff --git a/mcs/errors/cs1574-3.cs b/mcs/errors/cs1574-3.cs
new file mode 100755
index 00000000000..5b46ff18627
--- /dev/null
+++ b/mcs/errors/cs1574-3.cs
@@ -0,0 +1,10 @@
+// Compiler options: -doc:dummy.xml -warnaserror -warn:1
+using System;
+
+/// <see cref="Test.Foo(int)"/> Test has Foo, but is property that has no args.
+public class Test
+{
+ string Foo {
+ get { return null; }
+ }
+}
diff --git a/mcs/errors/cs1574-4.cs b/mcs/errors/cs1574-4.cs
new file mode 100755
index 00000000000..8c4f7c48e21
--- /dev/null
+++ b/mcs/errors/cs1574-4.cs
@@ -0,0 +1,8 @@
+// Compiler options: -doc:dummy.xml -warnaserror -noconfig
+using System;
+
+/// <seealso cref="System.Xml.XmlDocument"/>
+/// with /noconfig, it cannot be resolved.
+public class Test
+{
+}
diff --git a/mcs/errors/cs1574-5.cs b/mcs/errors/cs1574-5.cs
new file mode 100755
index 00000000000..76c0861ca07
--- /dev/null
+++ b/mcs/errors/cs1574-5.cs
@@ -0,0 +1,11 @@
+// Compiler options: -doc:dummy.xml -warnaserror -warn:1
+using System;
+
+/// <see cref="Goo"/> ... does not exist
+public class Test
+{
+ string Foo {
+ get { return null; }
+ }
+}
+
diff --git a/mcs/errors/cs1574.cs b/mcs/errors/cs1574.cs
new file mode 100755
index 00000000000..49181250f38
--- /dev/null
+++ b/mcs/errors/cs1574.cs
@@ -0,0 +1,6 @@
+// Compiler options: -doc:dummy.xml -warnaserror -warn:1
+using System;
+/// <seealso cref="explicit operator int (bool)"/>
+public class Test
+{
+}
diff --git a/mcs/errors/cs1580-2.cs b/mcs/errors/cs1580-2.cs
new file mode 100755
index 00000000000..c2ed72e6b6c
--- /dev/null
+++ b/mcs/errors/cs1580-2.cs
@@ -0,0 +1,6 @@
+// Compiler options: -doc:dummy.xml -warnaserror -warn:1
+using System;
+/// <see cref="Method(x,y)"/>
+public class Test
+{
+}
diff --git a/mcs/errors/cs1580.cs b/mcs/errors/cs1580.cs
new file mode 100755
index 00000000000..1627ba895dd
--- /dev/null
+++ b/mcs/errors/cs1580.cs
@@ -0,0 +1,10 @@
+// Compiler options: -doc:dummy.xml -warnaserror -warn:1
+using System;
+/// <seealso cref="Foo(x)"/>
+public class Test
+{
+ int Foo ()
+ {
+ return 0;
+ }
+}
diff --git a/mcs/errors/cs1581-2.cs b/mcs/errors/cs1581-2.cs
new file mode 100755
index 00000000000..4fa271b67fb
--- /dev/null
+++ b/mcs/errors/cs1581-2.cs
@@ -0,0 +1,12 @@
+// Compiler options: -doc:dummy.xml -warnaserror -warn:1
+using System;
+/// <seealso cref="explicit operator int (Test)"/>
+public class Test
+{
+ /// operator.
+ public static explicit operator int [] (Test t)
+ {
+ return new int [0];
+ }
+}
+
diff --git a/mcs/errors/cs1581.cs b/mcs/errors/cs1581.cs
new file mode 100755
index 00000000000..4b8ef6c9e6f
--- /dev/null
+++ b/mcs/errors/cs1581.cs
@@ -0,0 +1,12 @@
+// Compiler options: -doc:dummy.xml -warnaserror -warn:1
+using System;
+/// <seealso cref="explicit operator intp (Test)"/>
+public class Test
+{
+ /// operator.
+ public static explicit operator int (Test t)
+ {
+ return 0;
+ }
+}
+
diff --git a/mcs/errors/cs1584-2.cs b/mcs/errors/cs1584-2.cs
new file mode 100755
index 00000000000..60e2f4f74ae
--- /dev/null
+++ b/mcs/errors/cs1584-2.cs
@@ -0,0 +1,7 @@
+// Compiler options: -doc:dummy.xml -warnaserror -warn:1
+using System;
+
+/// <see cref="" />
+public class Test
+{
+}
diff --git a/mcs/errors/cs1584-3.cs b/mcs/errors/cs1584-3.cs
new file mode 100755
index 00000000000..a927c4cf977
--- /dev/null
+++ b/mcs/errors/cs1584-3.cs
@@ -0,0 +1,7 @@
+// Compiler options: -doc:dummy.xml -warnaserror -warn:1
+using System;
+
+/// <see cref="." />
+public class Test
+{
+}
diff --git a/mcs/errors/cs1584-4.cs b/mcs/errors/cs1584-4.cs
new file mode 100755
index 00000000000..0232e43b9d6
--- /dev/null
+++ b/mcs/errors/cs1584-4.cs
@@ -0,0 +1,6 @@
+// Compiler options: -doc:dummy.xml -warnaserror -warn:1
+using System;
+/// <see cref="Mai()n" />
+public class Test
+{
+}
diff --git a/mcs/errors/cs1584.cs b/mcs/errors/cs1584.cs
new file mode 100755
index 00000000000..ed638caa820
--- /dev/null
+++ b/mcs/errors/cs1584.cs
@@ -0,0 +1,6 @@
+// Compiler options: -doc:dummy.xml -warnaserror -warn:1
+using System;
+/// <seealso cref="operator foo(int,Test)"/>
+public class Test
+{
+}
diff --git a/mcs/errors/cs1587-10.cs b/mcs/errors/cs1587-10.cs
new file mode 100755
index 00000000000..1fc25e6667c
--- /dev/null
+++ b/mcs/errors/cs1587-10.cs
@@ -0,0 +1,9 @@
+// Compiler options: -doc:dummy.xml -warnaserror -warn:2
+using System;
+
+namespace TopNS
+{
+ [Flags/** here is also incorrect comment */]
+ enum Enum2 {
+ }
+}
diff --git a/mcs/errors/cs1587-11.cs b/mcs/errors/cs1587-11.cs
new file mode 100755
index 00000000000..1ed1501b56b
--- /dev/null
+++ b/mcs/errors/cs1587-11.cs
@@ -0,0 +1,12 @@
+// Compiler options: -doc:dummy.xml -warnaserror -warn:2
+using System;
+
+namespace TopNS
+{
+ namespace ChildNS {
+ [Flags]
+ /// comment after attribute
+ enum Enum2 {
+ }
+ }
+}
diff --git a/mcs/errors/cs1587-12.cs b/mcs/errors/cs1587-12.cs
new file mode 100755
index 00000000000..cfad50d831e
--- /dev/null
+++ b/mcs/errors/cs1587-12.cs
@@ -0,0 +1,10 @@
+// Compiler options: -doc:dummy.xml -warnaserror -warn:2
+using System;
+
+namespace TopNS
+{
+ enum Enum3 {
+ Foo /** invalid comment between enum identifier and comma */,
+ Bar
+ }
+}
diff --git a/mcs/errors/cs1587-13.cs b/mcs/errors/cs1587-13.cs
new file mode 100755
index 00000000000..ab1056d6dc4
--- /dev/null
+++ b/mcs/errors/cs1587-13.cs
@@ -0,0 +1,11 @@
+// Compiler options: -doc:dummy.xml -warnaserror -warn:2
+using System;
+
+namespace TopNS
+{
+ namespace ChildNS {
+ enum Enum3 {
+ }
+ /// invalid here
+ }
+}
diff --git a/mcs/errors/cs1587-14.cs b/mcs/errors/cs1587-14.cs
new file mode 100755
index 00000000000..3f117f39eb4
--- /dev/null
+++ b/mcs/errors/cs1587-14.cs
@@ -0,0 +1,9 @@
+// Compiler options: -doc:dummy.xml -warnaserror -warn:2
+using System;
+
+namespace TopNS
+{
+ internal /** comment */ /** comment2 */ class Hoge
+ {
+ }
+}
diff --git a/mcs/errors/cs1587-15.cs b/mcs/errors/cs1587-15.cs
new file mode 100755
index 00000000000..19248196b5e
--- /dev/null
+++ b/mcs/errors/cs1587-15.cs
@@ -0,0 +1,11 @@
+// Compiler options: -doc:dummy.xml -warnaserror -warn:2
+using System;
+
+namespace TopNS
+{
+ internal class Hoge
+ {
+ /// invalid comment
+ }
+
+}
diff --git a/mcs/errors/cs1587-16.cs b/mcs/errors/cs1587-16.cs
new file mode 100755
index 00000000000..2d6ea936ae4
--- /dev/null
+++ b/mcs/errors/cs1587-16.cs
@@ -0,0 +1,14 @@
+// Compiler options: -doc:dummy.xml -warnaserror -warn:2
+using System;
+
+namespace TopNS
+{
+ class Foo
+ {
+ string this [string bar] {
+ /// incorrect
+ get { return ""; }
+ set { }
+ }
+ }
+}
diff --git a/mcs/errors/cs1587-17.cs b/mcs/errors/cs1587-17.cs
new file mode 100755
index 00000000000..9b68c3eeeaa
--- /dev/null
+++ b/mcs/errors/cs1587-17.cs
@@ -0,0 +1,13 @@
+// Compiler options: -doc:dummy.xml -warnaserror -warn:2
+using System;
+
+namespace TopNS
+{
+ class Foo
+ {
+ string this [string bar] {
+ get { /** incorrect */ return ""; }
+ set { }
+ }
+ }
+}
diff --git a/mcs/errors/cs1587-18.cs b/mcs/errors/cs1587-18.cs
new file mode 100755
index 00000000000..e6097172efa
--- /dev/null
+++ b/mcs/errors/cs1587-18.cs
@@ -0,0 +1,14 @@
+// Compiler options: -doc:dummy.xml -warnaserror -warn:2
+using System;
+
+namespace TopNS
+{
+ class Foo
+ {
+ string this [string bar] {
+ get { return ""; }
+ /// incorrect
+ set { }
+ }
+ }
+}
diff --git a/mcs/errors/cs1587-19.cs b/mcs/errors/cs1587-19.cs
new file mode 100755
index 00000000000..3dd65d90cc2
--- /dev/null
+++ b/mcs/errors/cs1587-19.cs
@@ -0,0 +1,13 @@
+// Compiler options: -doc:dummy.xml -warnaserror -warn:2
+using System;
+
+namespace TopNS
+{
+ class Foo
+ {
+ string this [string bar] {
+ get { return ""; }
+ set { /** incorrect */ }
+ }
+ }
+}
diff --git a/mcs/errors/cs1587-2.cs b/mcs/errors/cs1587-2.cs
new file mode 100755
index 00000000000..800013f8ab3
--- /dev/null
+++ b/mcs/errors/cs1587-2.cs
@@ -0,0 +1,6 @@
+// Compiler options: -doc:dummy.xml -warnaserror -warn:2
+/// invalid comment on global attributes.
+[assembly:System.CLSCompliant (true)]
+
+enum Foo {
+}
diff --git a/mcs/errors/cs1587-20.cs b/mcs/errors/cs1587-20.cs
new file mode 100755
index 00000000000..d9c908081c4
--- /dev/null
+++ b/mcs/errors/cs1587-20.cs
@@ -0,0 +1,14 @@
+// Compiler options: -doc:dummy.xml -warnaserror -warn:2
+using System;
+
+namespace TopNS
+{
+ class Foo
+ {
+ public /// incorrect
+ void FooBar (string foo)
+ {
+ }
+ }
+
+}
diff --git a/mcs/errors/cs1587-21.cs b/mcs/errors/cs1587-21.cs
new file mode 100755
index 00000000000..93d9f454059
--- /dev/null
+++ b/mcs/errors/cs1587-21.cs
@@ -0,0 +1,14 @@
+// Compiler options: -doc:dummy.xml -warnaserror -warn:2
+using System;
+
+namespace TopNS
+{
+ class Foo
+ {
+ void /// incorrect
+ FooBar (string foo)
+ {
+ }
+ }
+
+}
diff --git a/mcs/errors/cs1587-22.cs b/mcs/errors/cs1587-22.cs
new file mode 100755
index 00000000000..c478f49aa9d
--- /dev/null
+++ b/mcs/errors/cs1587-22.cs
@@ -0,0 +1,13 @@
+// Compiler options: -doc:dummy.xml -warnaserror -warn:2
+using System;
+
+namespace TopNS
+{
+ class Foo
+ {
+ Foo /** incorrect */ ()
+ {
+ }
+ }
+
+}
diff --git a/mcs/errors/cs1587-23.cs b/mcs/errors/cs1587-23.cs
new file mode 100755
index 00000000000..b3482453554
--- /dev/null
+++ b/mcs/errors/cs1587-23.cs
@@ -0,0 +1,14 @@
+// Compiler options: -doc:dummy.xml -warnaserror -warn:2
+using System;
+
+namespace TopNS
+{
+ class Foo
+ {
+ static /// incorrect
+ Foo ()
+ {
+ }
+ }
+
+}
diff --git a/mcs/errors/cs1587-24.cs b/mcs/errors/cs1587-24.cs
new file mode 100755
index 00000000000..29ecd2b4c6d
--- /dev/null
+++ b/mcs/errors/cs1587-24.cs
@@ -0,0 +1,12 @@
+// Compiler options: -doc:dummy.xml -warnaserror -warn:2
+using System;
+
+namespace TopNS
+{
+ class Foo
+ {
+ Foo (/** incorrect doccomment*/ string foo)
+ {
+ }
+ }
+}
diff --git a/mcs/errors/cs1587-25.cs b/mcs/errors/cs1587-25.cs
new file mode 100755
index 00000000000..8060ceb8eab
--- /dev/null
+++ b/mcs/errors/cs1587-25.cs
@@ -0,0 +1,13 @@
+// Compiler options: -doc:dummy.xml -warnaserror -warn:2
+using System;
+
+namespace TopNS
+{
+ class Foo
+ {
+ Foo (string foo)
+ {
+ /** incorrect doccomment*/
+ }
+ }
+}
diff --git a/mcs/errors/cs1587-26.cs b/mcs/errors/cs1587-26.cs
new file mode 100755
index 00000000000..f26ebbb0a58
--- /dev/null
+++ b/mcs/errors/cs1587-26.cs
@@ -0,0 +1,10 @@
+// Compiler options: -doc:dummy.xml -warnaserror -warn:2
+using System;
+
+namespace TopNS
+{
+ class Foo
+ {
+ public /** invalid comment in field decl */ int field;
+ }
+}
diff --git a/mcs/errors/cs1587-27.cs b/mcs/errors/cs1587-27.cs
new file mode 100755
index 00000000000..3a07aad9342
--- /dev/null
+++ b/mcs/errors/cs1587-27.cs
@@ -0,0 +1,12 @@
+// Compiler options: -doc:dummy.xml -warnaserror -warn:2
+using System;
+
+namespace TopNS
+{
+ class Foo
+ {
+ public /** invalid comment in property decl */ int prop {
+ get { return 0; }
+ }
+ }
+}
diff --git a/mcs/errors/cs1587-28.cs b/mcs/errors/cs1587-28.cs
new file mode 100755
index 00000000000..011966ea100
--- /dev/null
+++ b/mcs/errors/cs1587-28.cs
@@ -0,0 +1,17 @@
+// Compiler options: -doc:dummy.xml -warnaserror -warn:2
+using System;
+
+namespace TopNS
+{
+ abstract class AFoo
+ {
+ internal abstract int Prop { get; }
+ }
+
+ class Foo : AFoo
+ {
+ sealed /** is "sealed" checked? */ internal override int Prop {
+ get { return 0; }
+ }
+ }
+}
diff --git a/mcs/errors/cs1587-3.cs b/mcs/errors/cs1587-3.cs
new file mode 100755
index 00000000000..2f9d0851702
--- /dev/null
+++ b/mcs/errors/cs1587-3.cs
@@ -0,0 +1,6 @@
+// Compiler options: -doc:dummy.xml -warnaserror -warn:2
+using System;
+[Flags]
+/// invalid comment between attributes and type declaration.
+enum Foo {
+}
diff --git a/mcs/errors/cs1587-4.cs b/mcs/errors/cs1587-4.cs
new file mode 100755
index 00000000000..34add97ca3d
--- /dev/null
+++ b/mcs/errors/cs1587-4.cs
@@ -0,0 +1,10 @@
+// Compiler options: -doc:dummy.xml -warnaserror -warn:2
+using System;
+
+/// invalid comment placed on namespace.
+namespace TopNS
+{
+ class Foo
+ {
+ }
+}
diff --git a/mcs/errors/cs1587-5.cs b/mcs/errors/cs1587-5.cs
new file mode 100755
index 00000000000..37a06e1b6bb
--- /dev/null
+++ b/mcs/errors/cs1587-5.cs
@@ -0,0 +1,11 @@
+// Compiler options: -doc:dummy.xml -warnaserror -warn:2
+using System;
+
+namespace TopNS
+{
+/// invalid comment on using directive inside namespace.
+using System.Xml;
+
+ enum Foo {
+ }
+}
diff --git a/mcs/errors/cs1587-6.cs b/mcs/errors/cs1587-6.cs
new file mode 100755
index 00000000000..b78221d4b21
--- /dev/null
+++ b/mcs/errors/cs1587-6.cs
@@ -0,0 +1,12 @@
+// Compiler options: -doc:dummy.xml -warnaserror -warn:2
+using System;
+
+/// invalid comment on using alias directive.
+using Hoge = System.Xml.XmlDocument;
+
+namespace TopNS
+{
+
+ enum Foo {
+ }
+}
diff --git a/mcs/errors/cs1587-7.cs b/mcs/errors/cs1587-7.cs
new file mode 100755
index 00000000000..078836be16e
--- /dev/null
+++ b/mcs/errors/cs1587-7.cs
@@ -0,0 +1,11 @@
+// Compiler options: -doc:dummy.xml -warnaserror -warn:2
+using System;
+
+namespace TopNS
+{
+/// invalid comment on using alias directive inside namespace.
+using Hoge = System.Xml.XmlDocument;
+
+ enum Foo {
+ }
+}
diff --git a/mcs/errors/cs1587-8.cs b/mcs/errors/cs1587-8.cs
new file mode 100755
index 00000000000..14b799ffd7b
--- /dev/null
+++ b/mcs/errors/cs1587-8.cs
@@ -0,0 +1,12 @@
+// Compiler options: -doc:dummy.xml -warnaserror -warn:2
+using System;
+
+namespace TopNS
+{
+ /// more invalid comment on namespace; inside namespace
+ namespace ChildNS {
+ class Test {
+ }
+ }
+
+}
diff --git a/mcs/errors/cs1587-9.cs b/mcs/errors/cs1587-9.cs
new file mode 100755
index 00000000000..f2db6410643
--- /dev/null
+++ b/mcs/errors/cs1587-9.cs
@@ -0,0 +1,8 @@
+// Compiler options: -doc:dummy.xml -warnaserror -warn:2
+using System;
+
+namespace TopNS
+{
+}
+
+/// EOF
diff --git a/mcs/errors/cs1587.cs b/mcs/errors/cs1587.cs
new file mode 100755
index 00000000000..7aada7fcc62
--- /dev/null
+++ b/mcs/errors/cs1587.cs
@@ -0,0 +1,5 @@
+// Compiler options: -doc:dummy.xml -warnaserror -warn:2
+/// invalid comment placed on namespace.
+using System;
+enum Foo {
+}
diff --git a/mcs/errors/cs1589.cs b/mcs/errors/cs1589.cs
new file mode 100755
index 00000000000..a8c74a7ca67
--- /dev/null
+++ b/mcs/errors/cs1589.cs
@@ -0,0 +1,16 @@
+// Compiler options: -doc:xml-025.xml -warn:1 -warnaserror
+
+namespace Testing
+{
+ /// <include file='cs1589.inc' path='/foo' />
+ public class Test
+ {
+ public static void Main ()
+ {
+ }
+
+ /// <include file='cs1589.inc' path='/root/@attr'/>
+ public string S3;
+ }
+}
+
diff --git a/mcs/errors/cs1590-2.cs b/mcs/errors/cs1590-2.cs
new file mode 100755
index 00000000000..2c96df5202f
--- /dev/null
+++ b/mcs/errors/cs1590-2.cs
@@ -0,0 +1,15 @@
+// Compiler options: -doc:xml-024.xml -warn:1 -warnaserror
+// Invalid XML 'include' element; Missing 'path' attribute
+
+namespace Testing
+{
+ /// comment
+ public class Test
+ {
+ /// <include file='a' />
+ public static void Main ()
+ {
+ }
+ }
+}
+
diff --git a/mcs/errors/cs1590-3.cs b/mcs/errors/cs1590-3.cs
new file mode 100755
index 00000000000..d3b5ee8f8af
--- /dev/null
+++ b/mcs/errors/cs1590-3.cs
@@ -0,0 +1,20 @@
+// Compiler options: -doc:xml-024.xml -warn:1 -warnaserror
+// Invalid XML 'include' element; Missing 'file' attribute
+
+namespace Testing
+{
+ /// comment
+ public class Test
+ {
+ /// comment
+ public static void Main ()
+ {
+ }
+
+ /// <include path='/foo/bar' />
+ public void Bar (int x)
+ {
+ }
+ }
+}
+
diff --git a/mcs/errors/cs1590.cs b/mcs/errors/cs1590.cs
new file mode 100755
index 00000000000..a7fd48146a4
--- /dev/null
+++ b/mcs/errors/cs1590.cs
@@ -0,0 +1,11 @@
+// Compiler options: -doc:xml-024.xml -warn:1 -warnaserror
+// CS1590: Invalid XML 'include' element; Missing 'file' attribute.
+
+namespace Testing
+{
+ /// <include/>
+ public class Test
+ {
+ }
+}
+
diff --git a/mcs/errors/cs1591-10.cs b/mcs/errors/cs1591-10.cs
new file mode 100755
index 00000000000..15619ae193d
--- /dev/null
+++ b/mcs/errors/cs1591-10.cs
@@ -0,0 +1,15 @@
+// Compiler options: -doc:dummy.xml -warnaserror -warn:4
+using System;
+
+namespace Testing
+{
+ /// <summary>
+ /// description for class Test
+ /// </summary>
+ public class Test
+ {
+ public static void Foo ()
+ {
+ }
+ }
+}
diff --git a/mcs/errors/cs1591-11.cs b/mcs/errors/cs1591-11.cs
new file mode 100755
index 00000000000..cb9a4f13309
--- /dev/null
+++ b/mcs/errors/cs1591-11.cs
@@ -0,0 +1,13 @@
+// Compiler options: -doc:dummy.xml -warnaserror -warn:4
+using System;
+
+namespace Testing
+{
+ /// <summary>
+ /// description for interface IFoo
+ /// </summary>
+ public interface IFoo
+ {
+ void Foo ();
+ }
+}
diff --git a/mcs/errors/cs1591-12.cs b/mcs/errors/cs1591-12.cs
new file mode 100755
index 00000000000..be4e8b0e362
--- /dev/null
+++ b/mcs/errors/cs1591-12.cs
@@ -0,0 +1,13 @@
+// Compiler options: -doc:dummy.xml -warnaserror -warn:4
+using System;
+
+namespace Testing
+{
+ /// <summary>
+ /// description for interface IFoo
+ /// </summary>
+ public interface IFoo
+ {
+ string Foo { get; }
+ }
+}
diff --git a/mcs/errors/cs1591-13.cs b/mcs/errors/cs1591-13.cs
new file mode 100755
index 00000000000..46ae34d0cd2
--- /dev/null
+++ b/mcs/errors/cs1591-13.cs
@@ -0,0 +1,15 @@
+// Compiler options: -doc:dummy.xml -warnaserror -warn:4
+using System;
+
+namespace Testing
+{
+ /// <summary>
+ /// description for class Test
+ /// </summary>
+ public class Test
+ {
+ public string this [int i] {
+ get { return null; }
+ }
+ }
+}
diff --git a/mcs/errors/cs1591-14.cs b/mcs/errors/cs1591-14.cs
new file mode 100755
index 00000000000..52c4dfe8511
--- /dev/null
+++ b/mcs/errors/cs1591-14.cs
@@ -0,0 +1,16 @@
+// Compiler options: -doc:dummy.xml -warnaserror -warn:4
+using System;
+
+namespace Testing
+{
+ /// <summary>
+ /// description for class Test
+ /// </summary>
+ public class Test
+ {
+ public static bool operator ! (Test t)
+ {
+ return false;
+ }
+ }
+}
diff --git a/mcs/errors/cs1591-15.cs b/mcs/errors/cs1591-15.cs
new file mode 100755
index 00000000000..d3a19c6a3d2
--- /dev/null
+++ b/mcs/errors/cs1591-15.cs
@@ -0,0 +1,15 @@
+// Compiler options: -doc:dummy.xml -warnaserror -warn:4
+using System;
+
+namespace Testing
+{
+ /// <summary>
+ /// description for class Test
+ /// </summary>
+ public class Test
+ {
+ public Test ()
+ {
+ }
+ }
+}
diff --git a/mcs/errors/cs1591-16.cs b/mcs/errors/cs1591-16.cs
new file mode 100755
index 00000000000..3c59c1b5d93
--- /dev/null
+++ b/mcs/errors/cs1591-16.cs
@@ -0,0 +1,15 @@
+// Compiler options: -doc:dummy.xml -warnaserror -warn:4
+using System;
+
+namespace Testing
+{
+ /// <summary>
+ /// description for class Test
+ /// </summary>
+ public class Test
+ {
+ ~Test ()
+ {
+ }
+ }
+}
diff --git a/mcs/errors/cs1591-17.cs b/mcs/errors/cs1591-17.cs
new file mode 100755
index 00000000000..693f1ae6732
--- /dev/null
+++ b/mcs/errors/cs1591-17.cs
@@ -0,0 +1,15 @@
+// Compiler options: -doc:dummy.xml -warnaserror -warn:4
+using System;
+
+namespace Testing
+{
+ /// <summary>
+ /// description for class Test
+ /// </summary>
+ public class Test
+ {
+ protected class InternalClass
+ {
+ }
+ }
+}
diff --git a/mcs/errors/cs1591-18.cs b/mcs/errors/cs1591-18.cs
new file mode 100755
index 00000000000..0a23e0a0c1e
--- /dev/null
+++ b/mcs/errors/cs1591-18.cs
@@ -0,0 +1,15 @@
+// Compiler options: -doc:dummy.xml -warnaserror -warn:4
+using System;
+
+namespace Testing
+{
+ /// <summary>
+ /// description for class Test
+ /// </summary>
+ public class Test
+ {
+ public struct InternalStruct
+ {
+ }
+ }
+}
diff --git a/mcs/errors/cs1591-2.cs b/mcs/errors/cs1591-2.cs
new file mode 100755
index 00000000000..77824d88524
--- /dev/null
+++ b/mcs/errors/cs1591-2.cs
@@ -0,0 +1,9 @@
+// Compiler options: -doc:dummy.xml -warnaserror -warn:4
+using System;
+
+namespace Testing
+{
+ public interface InterfaceTest
+ {
+ }
+}
diff --git a/mcs/errors/cs1591-3.cs b/mcs/errors/cs1591-3.cs
new file mode 100755
index 00000000000..bd5f94d6326
--- /dev/null
+++ b/mcs/errors/cs1591-3.cs
@@ -0,0 +1,9 @@
+// Compiler options: -doc:dummy.xml -warnaserror -warn:4
+using System;
+
+namespace Testing
+{
+ public enum Foo
+ {
+ }
+}
diff --git a/mcs/errors/cs1591-4.cs b/mcs/errors/cs1591-4.cs
new file mode 100755
index 00000000000..2999b921076
--- /dev/null
+++ b/mcs/errors/cs1591-4.cs
@@ -0,0 +1,13 @@
+// Compiler options: -doc:dummy.xml -warnaserror -warn:4
+using System;
+
+namespace Testing
+{
+ /// comment is here.
+ public enum Foo
+ {
+ Foo,
+ /// required for all enum members
+ Bar
+ }
+}
diff --git a/mcs/errors/cs1591-5.cs b/mcs/errors/cs1591-5.cs
new file mode 100755
index 00000000000..15c7d895119
--- /dev/null
+++ b/mcs/errors/cs1591-5.cs
@@ -0,0 +1,7 @@
+// Compiler options: -doc:dummy.xml -warnaserror -warn:4
+using System;
+
+namespace Testing
+{
+ public delegate void MyDelegate (object o, EventArgs e);
+}
diff --git a/mcs/errors/cs1591-6.cs b/mcs/errors/cs1591-6.cs
new file mode 100755
index 00000000000..acffd71b67f
--- /dev/null
+++ b/mcs/errors/cs1591-6.cs
@@ -0,0 +1,13 @@
+// Compiler options: -doc:dummy.xml -warnaserror -warn:4
+using System;
+
+namespace Testing
+{
+ /// <summary>
+ /// description for class Test
+ /// </summary>
+ public class Test
+ {
+ public const string Constant = "CONSTANT STRING";
+ }
+}
diff --git a/mcs/errors/cs1591-7.cs b/mcs/errors/cs1591-7.cs
new file mode 100755
index 00000000000..5ccbd14b576
--- /dev/null
+++ b/mcs/errors/cs1591-7.cs
@@ -0,0 +1,13 @@
+// Compiler options: -doc:dummy.xml -warnaserror -warn:4
+using System;
+
+namespace Testing
+{
+ /// <summary>
+ /// description for class Test
+ /// </summary>
+ public class Test
+ {
+ public string PublicField;
+ }
+}
diff --git a/mcs/errors/cs1591-8.cs b/mcs/errors/cs1591-8.cs
new file mode 100755
index 00000000000..b5e48a6688b
--- /dev/null
+++ b/mcs/errors/cs1591-8.cs
@@ -0,0 +1,15 @@
+// Compiler options: -doc:dummy.xml -warnaserror -warn:4
+using System;
+
+namespace Testing
+{
+ /// <summary>
+ /// description for class Test
+ /// </summary>
+ public class Test
+ {
+ public string PublicProperty {
+ get { return null; }
+ }
+ }
+}
diff --git a/mcs/errors/cs1591-9.cs b/mcs/errors/cs1591-9.cs
new file mode 100755
index 00000000000..ff28d3fac2b
--- /dev/null
+++ b/mcs/errors/cs1591-9.cs
@@ -0,0 +1,13 @@
+// Compiler options: -doc:dummy.xml -warnaserror -warn:4
+using System;
+
+namespace Testing
+{
+ /// <summary>
+ /// description for class Test
+ /// </summary>
+ public class Test
+ {
+ public event EventHandler MyEvent;
+ }
+}
diff --git a/mcs/errors/cs1591.cs b/mcs/errors/cs1591.cs
new file mode 100755
index 00000000000..8599cdd353a
--- /dev/null
+++ b/mcs/errors/cs1591.cs
@@ -0,0 +1,10 @@
+// Compiler options: -doc:dummy.xml -warnaserror -warn:4
+using System;
+
+namespace Testing
+{
+ public class TestClass
+ {
+ }
+}
+
diff --git a/mcs/errors/cs1592.cs b/mcs/errors/cs1592.cs
new file mode 100755
index 00000000000..e47cd8e9645
--- /dev/null
+++ b/mcs/errors/cs1592.cs
@@ -0,0 +1,16 @@
+// Compiler options: -doc:xml-024.xml -warn:1 -warnaserror
+// Badly formed XML in included comments file -- 'there-is-no-such-file'
+
+namespace Testing
+{
+ /// blah
+ public class Test
+ {
+ // warning
+ /// <include file='there-is-no-such-file' path='/foo/bar' />
+ public void Baz (int x)
+ {
+ }
+ }
+}
+