projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[mcs] Check for initially unassigned struct instance variables of unassigned structs.
[mono.git]
/
mcs
/
tests
/
test-829.cs
diff --git
a/mcs/tests/test-829.cs
b/mcs/tests/test-829.cs
index 6a7e2c8a9c5cc6fa968b227c45511f5317a1d609..d5c83a033f9cbe9bbf5ddc45cc7d0b817684ddc5 100644
(file)
--- a/
mcs/tests/test-829.cs
+++ b/
mcs/tests/test-829.cs
@@
-23,6
+23,18
@@
class C
s.F = 1.0f;
}
}
+
+ static void Test2 (bool b)
+ {
+ S s;
+ if (b) {
+ s.s2 = new S2 ();
+ s.F = 1.0f;
+ } else {
+ s.s2.f1 = 2.1f;
+ s.F = 1.0f;
+ }
+ }
public static int Main ()
{