Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@gnome.org>2002-05-13 20:53:57 +0400
committerMiguel de Icaza <miguel@gnome.org>2002-05-13 20:53:57 +0400
commit06403015c75ea07b870dfa1ac9cc53b2cb8f22a6 (patch)
tree349339745c7b8612aa4d47acc0b3a2d4cb565375 /mcs/tests/test-119.cs
parent761d9d80bb077c6c901b8ffb6fb60171e9c871d2 (diff)
Add new tests
svn path=/trunk/mcs/; revision=4593
Diffstat (limited to 'mcs/tests/test-119.cs')
-rw-r--r--mcs/tests/test-119.cs14
1 files changed, 12 insertions, 2 deletions
diff --git a/mcs/tests/test-119.cs b/mcs/tests/test-119.cs
index ad271f6ffe7..be7d7695a22 100644
--- a/mcs/tests/test-119.cs
+++ b/mcs/tests/test-119.cs
@@ -31,10 +31,20 @@ class Derived : MyObject {
}
class Test {
- static void Main ()
+ static int Main ()
{
Value v = new Value ();
- Derived d = (Derived) v;
+ v = null;
+
+ try {
+ // This will throw an exception.
+ // This test is more of a compile test, we need a real
+ // good test that does not require this lame catch.
+ Derived d = (Derived) v;
+ } catch {
+ }
+
+ return 0;
}
}