Skip to content

Commit

Permalink
New tests and updates.
Browse files Browse the repository at this point in the history
svn path=/trunk/mcs/; revision=71634
  • Loading branch information
marek-safar committed Jan 25, 2007
1 parent a754f29 commit 63df052
Show file tree
Hide file tree
Showing 9 changed files with 56 additions and 7 deletions.
2 changes: 1 addition & 1 deletion 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;
Expand Down
5 changes: 3 additions & 2 deletions 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 {
Expand Down
2 changes: 1 addition & 1 deletion 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;
Expand Down
2 changes: 1 addition & 1 deletion 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;
Expand Down
16 changes: 16 additions & 0 deletions 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;
}
}

16 changes: 16 additions & 0 deletions 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;
}
}

16 changes: 16 additions & 0 deletions 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;
}
}

2 changes: 1 addition & 1 deletion 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

Expand Down
2 changes: 1 addition & 1 deletion 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

Expand Down

0 comments on commit 63df052

Please sign in to comment.