Imported Upstream version 4.3.2.467

Former-commit-id: 9c2cb47f45fa221e661ab616387c9cda183f283d
This commit is contained in:
Xamarin Public Jenkins
2016-02-22 11:00:01 -05:00
parent f302175246
commit f3e3aab35a
4097 changed files with 122406 additions and 82300 deletions

View File

@@ -41,10 +41,12 @@ TEST_SUPPORT_FILES = \
dlls/first/CS1703-lib.dll dlls/first/CS1704-lib.dll \
dlls/second/CS1703-lib.dll dlls/second/CS1704-lib.dll
-include $(mcs_topdir)/build/config.make
# mention all targets
all-local $(STD_TARGETS:=-local):
VALID_PROFILE := $(filter net_4_5, $(PROFILE))
VALID_PROFILE := $(filter $(DEFAULT_PROFILE), $(PROFILE))
ifdef VALID_PROFILE
qcheck: run-mcs-tests

17
mcs/errors/cs0051-3.cs Normal file
View File

@@ -0,0 +1,17 @@
// CS0051: Inconsistent accessibility: parameter type `NV' is less accessible than method `C1.Foo(NV)'
// Line: 14
internal class NV
{
}
public partial class C1
{
}
partial class C1
{
public void Foo (NV arg)
{
}
}

17
mcs/errors/cs0208-18.cs Normal file
View File

@@ -0,0 +1,17 @@
// CS0208: Cannot take the address of, get the size of, or declare a pointer to a managed type `S'
// Line: 9
// Compiler options: /unsafe
unsafe public class C
{
S* i;
}
public struct S
{
AC ac;
}
abstract class AC
{
}

10
mcs/errors/cs0403-4.cs Normal file
View File

@@ -0,0 +1,10 @@
// CS0403: Cannot convert null to the type parameter `T' because it could be a value type. Consider using `default (T)' instead
// Line: 8
class Test<T>
{
public T Null ()
{
return (null);
}
}

18
mcs/errors/cs0619-41.cs Normal file
View File

@@ -0,0 +1,18 @@
// CS0619: `Y' is obsolete: `ooo'
// Line: 6
using System;
class X : I<Y>
{
}
interface I<T>
{
}
[Obsolete("ooo", true)]
class Y
{
}

25
mcs/errors/cs0619-58.cs Normal file
View File

@@ -0,0 +1,25 @@
// CS0619: `Program.TestEventArgs' is obsolete: `FooBar'
// Line: 10
using System;
namespace Program
{
public class TestClass
{
public EventHandler<TestEventArgs> Foo;
}
[Obsolete(Messages.Test, true)]
public sealed class TestEventArgs : EventArgs
{
}
}
namespace Program
{
public static class Messages
{
public const string Test = "FooBar";
}
}

20
mcs/errors/cs0841-6.cs Normal file
View File

@@ -0,0 +1,20 @@
// CS0841: A local variable `n' cannot be used before it is declared
// Line: 17
class MainClass
{
public delegate void Fn (MainClass o);
public static void Call (Fn f)
{
f(null);
}
public static void Main ()
{
Call (delegate (MainClass o) {
n = o;
MainClass n = new MainClass ();
});
}
}

View File

@@ -1,4 +1,4 @@
// CS1570: XML documentation comment on `Testing.Test.PrivateField2' is not well-formed XML markup (The 'summary' start tag on line 1 position 2 does not match the end tag of 'incorrect'. Line 3, position 3.)
// CS1570: XML documentation comment on `Testing.Test.PrivateField2' is not well-formed XML markup (The 'summary' start tag on line 1 position 3 does not match the end tag of 'incorrect'. Line 3, position 4.)
// Line: 23
// Compiler options: -doc:dummy.xml -warn:1 -warnaserror

View File

@@ -1,4 +1,4 @@
// CS1570: XML documentation comment on `Testing.Test.PublicProperty2' is not well-formed XML markup (The 'summary' start tag on line 1 position 2 does not match the end tag of 'incorrect'. Line 3, position 3.)
// CS1570: XML documentation comment on `Testing.Test.PublicProperty2' is not well-formed XML markup (The 'summary' start tag on line 1 position 3 does not match the end tag of 'incorrect'. Line 3, position 4.)
// Line: 32
// Compiler options: -doc:dummy.xml -warn:1 -warnaserror

View File

@@ -1,4 +1,4 @@
// CS1570: XML documentation comment on `Test' is not well-formed XML markup (Unexpected XML declaration. The XML declaration must be the first node in the document, and no white space characters are allowed to appear before it. Line 3, position 3.)
// CS1570: XML documentation comment on `Test' is not well-formed XML markup (Unexpected XML declaration. The XML declaration must be the first node in the document, and no white space characters are allowed to appear before it. Line 3, position 4.)
// Line: 13
// Compiler options: -doc:dummy.xml -warnaserror -warn:1

View File

@@ -6,9 +6,9 @@ using System;
namespace Testing
{
/// <summary>
///<summary>
/// Incorrect comment markup.
/// </incorrect>
///</incorrect>
public class Test2
{
}

View File

@@ -4,9 +4,9 @@
namespace Testing
{
/// <summary>
///<summary>
/// incorrect markup comment for struct
/// </incorrect>
///</incorrect>
public struct StructTest2
{
}

View File

@@ -6,9 +6,9 @@ using System;
namespace Testing
{
/// <summary>
///<summary>
/// incorrect markup comment for interface
/// </incorrect>
///</incorrect>
public interface InterfaceTest2
{
}

View File

@@ -6,9 +6,9 @@ using System;
namespace Testing
{
/// <summary>
///<summary>
/// comment for enum type
/// </incorrect>
///</incorrect>
enum EnumTest2
{
Foo,

View File

@@ -1,4 +1,4 @@
// CS1570: XML documentation comment on `Testing.MyDelegate2' is not well-formed XML markup (The 'summary' start tag on line 1 position 2 does not match the end tag of 'incorrect'. Line 3, position 3.)
// CS1570: XML documentation comment on `Testing.MyDelegate2' is not well-formed XML markup (The 'summary' start tag on line 1 position 3 does not match the end tag of 'incorrect'. Line 3, position 4.)
// Line: 12
// Compiler options: -doc:dummy.xml -warn:1 -warnaserror

View File

@@ -1,4 +1,4 @@
// CS1570: XML documentation comment on `Testing.Test2' is not well-formed XML markup (Name cannot begin with the '6' character, hexadecimal value 0x36. Line 1, position 2.)
// CS1570: XML documentation comment on `Testing.Test2' is not well-formed XML markup (Name cannot begin with the '6' character, hexadecimal value 0x36. Line 1, position 3.)
// Line: 9
// Compiler options: -doc:dummy.xml -warn:1 -warnaserror

View File

@@ -1,4 +1,4 @@
// CS1570: XML documentation comment on `Testing.Test.Constant2' is not well-formed XML markup (The 'summary' start tag on line 1 position 2 does not match the end tag of 'invalid'. Line 3, position 3.)
// CS1570: XML documentation comment on `Testing.Test.Constant2' is not well-formed XML markup (The 'summary' start tag on line 1 position 3 does not match the end tag of 'invalid'. Line 3, position 4.)
// Line: 19
// Compiler options: -doc:dummy.xml -warn:1 -warnaserror

View File

@@ -1,4 +1,4 @@
// CS1570: XML documentation comment on `Testing.Test.PublicField2' is not well-formed XML markup (The 'summary' start tag on line 1 position 2 does not match the end tag of 'invalid'. Line 3, position 3.)
// CS1570: XML documentation comment on `Testing.Test.PublicField2' is not well-formed XML markup (The 'summary' start tag on line 1 position 3 does not match the end tag of 'invalid'. Line 3, position 4.)
// Line: 19
// Compiler options: -doc:dummy.xml -warn:1 -warnaserror

View File

@@ -1,4 +1,4 @@
// CS1570: XML documentation comment on `Testing.Test2' is not well-formed XML markup (The 'summary' start tag on line 1 position 2 does not match the end tag of 'incorrect'. Line 3, position 3.)
// CS1570: XML documentation comment on `Testing.Test2' is not well-formed XML markup (The 'summary' start tag on line 1 position 3 does not match the end tag of 'incorrect'. Line 3, position 4.)
// Line: 12
// Compiler options: -doc:dummy.xml -warnaserror -warn:1

View File

@@ -1,4 +1,4 @@
// CS1705: Assembly `CS1705-lib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' references `CS1705-lib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=36f3ae7e947792e3' which has a higher version number than imported assembly `CS1705-lib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=36f3ae7e947792e3'
// CS1705: Assembly `CS1705-lib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' depends on `CS1705-lib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=36f3ae7e947792e3' which has a higher version number than referenced assembly `CS1705-lib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=36f3ae7e947792e3'
// Line: 0
// Compiler options: -r:CS1705-lib.dll -r:dlls/second/CS1705-lib.dll -keyfile:key.snk

Some files were not shown because too many files have changed in this diff Show More