[metadata] Use MONO_PROFILER_API on MonoClass getters in checked builds (#20440)
[mono-project.git] / mcs / errors / cs0165-57.cs
blob61bb2c6b502c09ab1b82616091ccf1f65807a73f
1 // CS0165: Use of unassigned local variable `v'
2 // Line: 52
4 struct Vector3
6 int field1, field2, field3;
9 public class C
11 void Update ()
13 int v1 = 0;
14 int v2 = 0;
15 int v3 = 0;
16 int v4 = 0;
17 int v5 = 0;
18 int v6 = 0;
19 int v7 = 0;
20 int v8 = 0;
21 int v9 = 0;
22 int v10 = 0;
23 int v11 = 0;
24 int v12 = 0;
25 int v13 = 0;
26 int v14 = 0;
27 int v15 = 0;
28 int v16 = 0;
29 int v17 = 0;
30 int v18 = 0;
31 int v19 = 0;
32 int v20 = 0;
33 int v21 = 0;
34 int v22 = 0;
35 int v23 = 0;
36 int v24 = 0;
37 int v25 = 0;
38 int v26 = 0;
39 int v27 = 0;
40 int v29;
42 Vector3 v;
43 if (v1 == 0)
45 v = new Vector3 ();
47 else if (v2 >= 0.5)
49 v = new Vector3 ();
52 System.GC.KeepAlive (v);