diff options
author | Raja R Harinath <harinath@hurrynot.org> | 2004-09-07 12:23:51 +0400 |
---|---|---|
committer | Raja R Harinath <harinath@hurrynot.org> | 2004-09-07 12:23:51 +0400 |
commit | f0d8f97a976c7527e502259307ae36f8cc4dfd2b (patch) | |
tree | 2d30ce2b51b7a386270090a9faac38a3f5c1355c /mcs | |
parent | b3d9753954a6d9ddcc936b2b6ba06904f016ea13 (diff) |
New test.
svn path=/trunk/mcs/; revision=33481
Diffstat (limited to 'mcs')
-rwxr-xr-x | mcs/mcs/ChangeLog | 7 | ||||
-rwxr-xr-x | mcs/tests/ChangeLog | 4 | ||||
-rw-r--r-- | mcs/tests/Makefile | 2 | ||||
-rw-r--r-- | mcs/tests/README.tests | 6 | ||||
-rw-r--r-- | mcs/tests/test-290.cs | 13 |
5 files changed, 31 insertions, 1 deletions
diff --git a/mcs/mcs/ChangeLog b/mcs/mcs/ChangeLog index d321c8d0d1a..27402e30242 100755 --- a/mcs/mcs/ChangeLog +++ b/mcs/mcs/ChangeLog @@ -1,3 +1,10 @@ +2004-09-07 Raja R Harinath <rharinath@novell.com> + + Fix test-290.cs. + * cs-parser.jay (delegate_declaration): Record a delegate + declaration as a type declaration. + Reported by Jo Vermeulen <jo@lumumba.luc.ac.be>. + 2004-09-06 Miguel de Icaza <miguel@ximian.com> * parameter.cs: Do not crash if the type can not be resolved. diff --git a/mcs/tests/ChangeLog b/mcs/tests/ChangeLog index f2f4991bef6..d3d75a8b6de 100755 --- a/mcs/tests/ChangeLog +++ b/mcs/tests/ChangeLog @@ -1,3 +1,7 @@ +2004-09-07 Raja R Harinath <rharinath@novell.com> + + * test-290.cs: New test. + 2004-09-06 Ben Maurer <bmaurer@users.sourceforge.net> * unsafe-10.cs: new test diff --git a/mcs/tests/Makefile b/mcs/tests/Makefile index b60c5636e8e..1cf2febe2f4 100644 --- a/mcs/tests/Makefile +++ b/mcs/tests/Makefile @@ -44,7 +44,7 @@ TEST_SOURCES = \ test-251 test-252 test-253 test-254 test-255 test-256 test-257 test-258 test-259 test-260 \ test-261 test-262 test-263 test-264 test-265 test-266 test-267 test-268 test-269 test-270 \ test-271 test-272 test-273 test-274 test-275 test-276 test-277 test-278 test-279 test-280 \ - test-281 test-282 test-283 test-284 test-285 test-286 test-287 test-288 test-289 \ + test-281 test-282 test-283 test-284 test-285 test-286 test-287 test-288 test-289 test-290 \ cls-test-0 cls-test-1 cls-test-2 cls-test-3 cls-test-5 cls-test-6 cls-test-7 cls-test-10 \ cls-test-11 cls-test-14 cls-test-15 cls-test-16 \ mtest-1-dll mtest-1-exe diff --git a/mcs/tests/README.tests b/mcs/tests/README.tests index 4a22673a32a..3b38d81a6bc 100644 --- a/mcs/tests/README.tests +++ b/mcs/tests/README.tests @@ -472,6 +472,12 @@ test-237.cs: Test for bug #56442. Verify that delegate invocation and normal method invocation act the same when the 'params' keyword is used. +test-290.cs: +----------- +Test for bug reported in + + http://lists.ximian.com/archives/public/mono-devel-list/2004-September/007777.html + verify-1.cs ----------- Test whether we do not jump out of the method in a Try/Finally block. diff --git a/mcs/tests/test-290.cs b/mcs/tests/test-290.cs new file mode 100644 index 00000000000..99ebc8217e4 --- /dev/null +++ b/mcs/tests/test-290.cs @@ -0,0 +1,13 @@ +// Distilled from report in http://lists.ximian.com/archives/public/mono-devel-list/2004-September/007777.html + +using System; + +class EntryPoint { + delegate void EventHandler (object sender); + static event EventHandler FooEvent; + static void bar_f (object sender) {} + static void Main () { + FooEvent (null); + object bar = new EventHandler (bar_f); + } +} |