svn path=/trunk/mcs/; revision=16777
test-172 test-173 test-174 test-175 test-176 test-177 test-178 test-179 test-180 \
test-181 test-182 test-183 test-184 test-185 test-186 test-187 test-188 test-190 \
test-191 test-192 test-193 test-194 test-195 test-196 test-197 test-198 test-199 test-200 \
- test-201 test-202 test-203 test-204 test-205 test-206 test-207 test-208 test-209 test-210
+ test-201 test-202 test-203 test-204 test-205 test-206 test-207 test-208 test-209 test-210 \
+ test-211
UNSAFE_SOURCES = \
* Invocation and Casts
- test-153.cs test-163.c test-207.cs test-210.cs
+ test-153.cs test-163.c test-207.cs test-210.cs test-211.cs
* Flow Analysis
Cast something to a delegate and then invoke it; bug #46923.
+test-211.cs
+-----------
+
+Multiple casts.
+
verify-1.cs
-----------
Test whether we do not jump out of the method in a Try/Finally block.
--- /dev/null
+class X
+{
+ public readonly int value;
+
+ public X (int value)
+ {
+ this.value = value;
+ }
+
+ public static implicit operator X (int y)
+ {
+ return new X (y);
+ }
+}
+
+class Y
+{
+ public readonly X x;
+
+ public Y (X x)
+ {
+ this.x = x;
+ }
+
+ public static implicit operator Y (X x)
+ {
+ return new Y (x);
+ }
+}
+
+class Z
+{
+ public readonly Y y;
+
+ public Z (Y y)
+ {
+ this.y = y;
+ }
+
+ public static implicit operator Z (Y y)
+ {
+ return new Z (y);
+ }
+
+ public static int Main ()
+ {
+ int a = 5;
+ Y y = (Y) (X) a;
+ return 0;
+ }
+}