diff options
author | Marek Safar <marek.safar@gmail.com> | 2007-01-25 03:20:04 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2007-01-25 03:20:04 +0300 |
commit | 63df052d41ea728870b72d3b61e52fba1e2b8cf5 (patch) | |
tree | 209cc56006341fc8c6c0a12fdb7e9d7864000b49 /mcs | |
parent | a754f290f42ccb0e4ffc7990ad1302a288f2a639 (diff) |
New tests and updates.
svn path=/trunk/mcs/; revision=71634
Diffstat (limited to 'mcs')
-rw-r--r-- | mcs/errors/cs0138.cs | 2 | ||||
-rw-r--r-- | mcs/errors/cs0652-2.cs | 5 | ||||
-rw-r--r-- | mcs/errors/cs0652-3.cs | 2 | ||||
-rw-r--r-- | mcs/errors/cs0652-4.cs | 2 | ||||
-rw-r--r-- | mcs/errors/cs0652-5.cs | 16 | ||||
-rw-r--r-- | mcs/errors/cs0652-6.cs | 16 | ||||
-rw-r--r-- | mcs/errors/cs0652-7.cs | 16 | ||||
-rw-r--r-- | mcs/errors/cs0652.cs | 2 | ||||
-rw-r--r-- | mcs/errors/cs1718.cs | 2 |
9 files changed, 56 insertions, 7 deletions
diff --git a/mcs/errors/cs0138.cs b/mcs/errors/cs0138.cs index 4d1632b60cb..382a4e670c8 100644 --- a/mcs/errors/cs0138.cs +++ b/mcs/errors/cs0138.cs @@ -1,4 +1,4 @@ -// cs0138.cs: `System.Console is a type not a namespace. A using namespace directive can only be applied to namespaces +// CS0138: `System.Console' is a type not a namespace. A using namespace directive can only be applied to namespaces // Line: 5 using System; diff --git a/mcs/errors/cs0652-2.cs b/mcs/errors/cs0652-2.cs index d804717ac27..be9d3757677 100644 --- a/mcs/errors/cs0652-2.cs +++ b/mcs/errors/cs0652-2.cs @@ -1,6 +1,7 @@ -// cs0652-2.cs : Comparison to integral constant is useless; the constant is outside the range of type `byte' -// Line: 11 +// CS0652: A comparison between a constant and a variable is useless. The constant is out of the range of the variable type `byte' +// Line: 12 // Compiler options: /warn:2 /warnaserror + using System; public class CS0652 { diff --git a/mcs/errors/cs0652-3.cs b/mcs/errors/cs0652-3.cs index 8802fdc623a..18c093ec1cf 100644 --- a/mcs/errors/cs0652-3.cs +++ b/mcs/errors/cs0652-3.cs @@ -1,4 +1,4 @@ -// cs0652-3.cs : Comparison to integral constant is useless; the constant is outside the range of type `ushort' +// CS0652: A comparison between a constant and a variable is useless. The constant is out of the range of the variable type `ushort' // Line: 11 // Compiler options: /warn:2 /warnaserror using System; diff --git a/mcs/errors/cs0652-4.cs b/mcs/errors/cs0652-4.cs index 44e70339ce1..0528edd1664 100644 --- a/mcs/errors/cs0652-4.cs +++ b/mcs/errors/cs0652-4.cs @@ -1,4 +1,4 @@ -// cs0652-4.cs : Comparison to integral constant is useless; the constant is outside the range of type `short' +// CS0652: A comparison between a constant and a variable is useless. The constant is out of the range of the variable type `short' // Line: 11 // Compiler options: /warn:2 /warnaserror using System; diff --git a/mcs/errors/cs0652-5.cs b/mcs/errors/cs0652-5.cs new file mode 100644 index 00000000000..e7827ef6d2b --- /dev/null +++ b/mcs/errors/cs0652-5.cs @@ -0,0 +1,16 @@ +// CS0652: A comparison between a constant and a variable is useless. The constant is out of the range of the variable type `char' +// Line: 12 +// Compiler options: /warn:2 /warnaserror + +using System; + +public class CS0652 { + + public static void Main () + { + char value = 'a'; + if (value < SByte.MinValue) + return; + } +} + diff --git a/mcs/errors/cs0652-6.cs b/mcs/errors/cs0652-6.cs new file mode 100644 index 00000000000..e9271760915 --- /dev/null +++ b/mcs/errors/cs0652-6.cs @@ -0,0 +1,16 @@ +// CS0652: A comparison between a constant and a variable is useless. The constant is out of the range of the variable type `short' +// Line: 12 +// Compiler options: /warn:2 /warnaserror + +using System; + +public class CS0652 { + + public static void Main () + { + short value = 5; + if (value > char.MaxValue) + return; + } +} + diff --git a/mcs/errors/cs0652-7.cs b/mcs/errors/cs0652-7.cs new file mode 100644 index 00000000000..ec08b5f7815 --- /dev/null +++ b/mcs/errors/cs0652-7.cs @@ -0,0 +1,16 @@ +// CS0652: A comparison between a constant and a variable is useless. The constant is out of the range of the variable type `char' +// Line: 12 +// Compiler options: /warn:2 /warnaserror + +using System; + +public class CS0652 { + + public static void Main () + { + char value = 'a'; + if (value > ulong.MaxValue) + return; + } +} + diff --git a/mcs/errors/cs0652.cs b/mcs/errors/cs0652.cs index 8d42558e52b..b555d45a01d 100644 --- a/mcs/errors/cs0652.cs +++ b/mcs/errors/cs0652.cs @@ -1,4 +1,4 @@ -// cs0652.cs: Comparison to integral constant is useless; the constant is outside the range of type `byte' +// CS0652: A comparison between a constant and a variable is useless. The constant is out of the range of the variable type `byte' // Line: 9 // Compiler options: -warnaserror -warn:2 diff --git a/mcs/errors/cs1718.cs b/mcs/errors/cs1718.cs index 0f585a0a54a..0e9299c4653 100644 --- a/mcs/errors/cs1718.cs +++ b/mcs/errors/cs1718.cs @@ -1,4 +1,4 @@ -// cs1718.cs: Comparison made to same variable; did you mean to compare something else? +// CS1718: A comparison made to same variable. Did you mean to compare something else? // Line: 10 // Compiler options: -warnaserror -warn:3 |