svn path=/trunk/mcs/; revision=5803
test-111 test-112 test-113 test-114 test-115 test-116 test-117 test-118 test-119 \
test-121 test-122 test-123 test-125 test-126 test-127 test-128 test-129 test-130 \
test-131 test-132 test-133 test-134 test-135 test-136 test-137 test-138 test-139 test-140 \
- test-141 test-142
+ test-141 test-142 test-143
UNSAFE_SOURCES = \
unsafe-1 unsafe-2 unsafe-3
--- /dev/null
+using System;
+
+struct MonoEnumInfo {
+ int val;
+
+ void stuff() { val = 1; }
+
+ static int GetInfo (out MonoEnumInfo info) {
+ info.stuff();
+ return info.val;
+ }
+
+ static int Main()
+ {
+ MonoEnumInfo m;
+
+ if (GetInfo (out m) != 1)
+ return 1;
+
+ if (m.val != 1)
+ return 2;
+
+ return 0;
+ }
+};
+