Skip to content

Commit

Permalink
* test-252.cs: Avoid reference to System.dll.
Browse files Browse the repository at this point in the history
* test-277.cs: New test for #56774.

svn path=/trunk/mcs/; revision=30303
  • Loading branch information
harinath committed Jun 24, 2004
1 parent f4d4ebd commit 14995f2
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
5 changes: 5 additions & 0 deletions mcs/tests/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2004-06-24 Raja R Harinath <rharinath@novell.com>

* test-252.cs: Avoid reference to System.dll.
* test-277.cs: New test for #56774.

2004-06-24 Marek Safar <marek.safar@seznam.cz>

* test-205.cs: Removed because become invalid.
Expand Down
4 changes: 2 additions & 2 deletions mcs/tests/test-252.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ class A {

public static void m1 () { }

public static void Main ()
public static int Main ()
{
A a = new A();
a.Bar += new Foo (m1);
a.Bar -= new Foo (m1);
System.Diagnostics.Debug.Assert (a.Bar == null);
return (a.Bar == null) ? 0 : 1;
}
}

14 changes: 14 additions & 0 deletions mcs/tests/test-277.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// test for bug #56774

class T {
static int Main () {
return X (1);
}

static int X (byte x) {
return 0;
}
static int X (short x) {
return 1;
}
}

0 comments on commit 14995f2

Please sign in to comment.