Merge pull request #1861 from saper/home-override
[mono-project.git] / mcs / tests / test-480.cs
blobeed776f3dc04b7663c44fc702e223e19abd104f6
1 using System;
3 class A : IDisposable
5 public A (int v)
9 public void Dispose ()
14 class C
16 int b;
18 delegate void D (int i);
20 static void Test (object arg)
22 const int a2= 9, a3 = a2, a4 = a3, a5 = a4;
23 Console.WriteLine (a5);
25 if (a2 > 0) {
26 bool a = false;
27 } else {
28 const bool a = false;
31 for (int i = 0; i < 10; ++i) {
32 Console.WriteLine (i);
35 for (int i = 0; i < 10; ++i) {
36 Console.WriteLine (i);
39 foreach (var i in new int[] { 9, 8 }) {
40 Console.WriteLine (i);
43 using (A i = new A (1), i2 = new A (2), i3 = new A (3)) {
46 using (A i = new A (3)) {
49 try {
51 catch (Exception o) {
52 o = null;
55 D action = delegate (int i) {
59 public static int Main ()
61 Test (1);
62 return 0;