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

test-143.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 431393f5c05d3b33140e78c2a5f17b214ae8ac68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using System;

struct MonoEnumInfo {
        int val;

        void stuff() { val = 1; }

        static int GetInfo (out MonoEnumInfo info) {
		info = new MonoEnumInfo ();
                info.stuff();
                return info.val;
        }

        public static int Main()
	{
		MonoEnumInfo m;

		if (GetInfo (out m) != 1)
			return 1;
		
		if (m.val != 1)
			return 2;

		return 0;
	}
};