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

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2004-11-18 18:35:52 +0300
committerMarek Safar <marek.safar@gmail.com>2004-11-18 18:35:52 +0300
commit64d04d7b176cf068f56a0a237be9639fc74305e6 (patch)
treefc60c5a9bd43b09d28b6706b259bcb20cee6492d /mcs/tests/test-318.cs
parentd575c1258e35a69bddaf8e35c4d9c0e25d3c3428 (diff)
2004-11-18 Marek Safar <marek.safar@seznam.cz>
* test-318.cs: New test for wrong warning. svn path=/trunk/mcs/; revision=36280
Diffstat (limited to 'mcs/tests/test-318.cs')
-rw-r--r--mcs/tests/test-318.cs19
1 files changed, 19 insertions, 0 deletions
diff --git a/mcs/tests/test-318.cs b/mcs/tests/test-318.cs
new file mode 100644
index 00000000000..c74e02445b8
--- /dev/null
+++ b/mcs/tests/test-318.cs
@@ -0,0 +1,19 @@
+// This code must be compilable without any warning
+// Compiler options: -warnaserror -warn:4
+
+public class C
+{
+ public static void my_from_fixed(out int val)
+ {
+ val = 3;
+ }
+
+ public static void month_from_fixed(int date) {
+ int year;
+ my_from_fixed(out year);
+ }
+
+ public static void Main ()
+ {
+ }
+}