improved test
[mono.git] / mcs / tests / test-318.cs
1 // This code must be compilable without any warning
2 // Compiler options: -warnaserror -warn:4 -unsafe\r
3 // Test of wrong CS0219 warning
4
5 public class C {\r
6     \r
7         public static void my_from_fixed(out int val)
8         {
9                 val = 3;
10         }
11         
12         public static void month_from_fixed(int date)
13         {
14                 int year;
15                 my_from_fixed(out year);
16         }\r
17         \r
18         internal static int CreateFromString (int arg)
19         {
20                 int major = 0;
21                 int number = 5;
22
23                 major = number;
24                 number = -1;\r
25                     
26                 return major;
27         }   \r
28         \r
29         public unsafe double* GetValue (double value)
30         {
31                 double d = value;
32                 return &d;
33         }        
34         
35         public static void Main () {
36         }
37 }