new tests
authorMarek Safar <marek.safar@gmail.com>
Mon, 3 Oct 2005 15:43:09 +0000 (15:43 -0000)
committerMarek Safar <marek.safar@gmail.com>
Mon, 3 Oct 2005 15:43:09 +0000 (15:43 -0000)
svn path=/trunk/mcs/; revision=51123

1  2 
mcs/errors/cs0029.cs
mcs/errors/cs0030-2.cs
mcs/errors/cs0030.cs
mcs/errors/cs0031.cs
mcs/errors/cs0266-2.cs
mcs/errors/cs0266-4.cs
mcs/errors/cs0266-5.cs
mcs/errors/cs0266-6.cs
mcs/errors/cs0266-7.cs
mcs/errors/known-issues-mcs

index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..5394a0ec035216ce0b6c605074f4d3db2e61bb22
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,14 @@@
++// cs0029.cs: Cannot implicitly convert type `X' to `bool'
++// Line : 11
++
++class X {
++}
++
++class T {
++      static void Main ()
++      {
++              X x = new X ();
++              if (x){
++              }
++      }
++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..036d8fdf79b6714c41a2b9800b941e83023036ac
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,12 @@@
++// cs0030.cs : Cannot convert type `bool' to `float'
++// Line : 12
++
++public class Blah {
++
++      public static int Main ()
++      {
++              const bool k = false;           
++              float f = (float) k;
++              
++      }
++}
index 7226eb2855c57233fd244d0b45035c1c3d5e4f2c,7226eb2855c57233fd244d0b45035c1c3d5e4f2c..bdfd58490eea2ddab077702eb5ffdd5b1bb0134e
@@@ -1,4 -1,4 +1,4 @@@
--// cs0030.cs : Cannot convert type 'Blah' to 'float'
++// cs0030.cs : Cannot convert type `Blah' to `float'
  // Line : 12
  
  public class Blah {
diff --cc mcs/errors/cs0031.cs
index 8eadba4ca3d84f540f4f5b0b8dfd47f7b09ec34b,8eadba4ca3d84f540f4f5b0b8dfd47f7b09ec34b..0000000000000000000000000000000000000000
deleted file mode 100644,100644
+++ /dev/null
@@@ -1,14 -1,14 +1,0 @@@
--// cs0031.cs: Constant value `256' cannot be converted to a `byte'
--// Line : 7
--
--public class Blah {
--
--      public enum MyEnum : byte {
--              Foo = 256,
--              Bar
--      }
--
--      public static void Main ()
--      {
--      }
--}
index 56aba3f9fe88aa69e6f71fa0faada4d690c196f5,56aba3f9fe88aa69e6f71fa0faada4d690c196f5..b13d24a6e3b8244993caa336b28b7d044aaabfe5
@@@ -1,4 -1,4 +1,4 @@@
--// cs0266.cs: Cannot implicitly convert type 'Helper*' to 'Obsolete*'. An explicit conversion exists (are you missing a cast?)
++// cs0266.cs: Cannot implicitly convert type `Helper*' to `Obsolete*'. An explicit conversion exists (are you missing a cast?)
  // Line: 18
  // Compiler options: -unsafe
  
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..294ba4b82ab7c1e9dabc9d68ddde9c6d102528f8
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,9 @@@
++// cs0266.cs: Cannot implicitly convert type `long' to `int'. An explicit conversion exists (are you missing a cast?)
++// Line: 7
++// Compiler options: -unsafe
++
++public unsafe struct C
++{
++    private fixed long test_1 [200000000000];
++}
++
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..6fdec6d38f6dfeb72d66845984b9d2414b599b8f
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,12 @@@
++// cs0266-5.cs: Cannot implicitly convert type `long' to `int'. An explicit conversion exists (are you missing a cast?)
++// Line: 9
++
++class X
++{
++      public static void Main ()
++      {
++              int i = 3;
++              i += 999999999999999;
++      }
++}
++
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..cb87a667b5e93a3482eabb27fd6495eaf7f43e75
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,10 @@@
++// cs0266.cs: Cannot implicitly convert type `long' to `uint'. An explicit conversion exists (are you missing a cast?)
++// Line: 7
++
++namespace MWFTestApplication {
++      class MainWindow {
++              public enum Testme : uint {
++                      value   = (1L << 1)
++              }
++      }
++}
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..bf0837742f7c9bfed22f69ed17031581ef090761
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,14 @@@
++// cs0266-7.cs: Cannot implicitly convert type `int' to `byte'. An explicit conversion exists (are you missing a cast?)
++// Line : 7
++
++public class Blah {
++
++      public enum MyEnum : byte {
++              Foo = 256,
++              Bar
++      }
++
++      public static void Main ()
++      {
++      }
++}
index 1ccc9f37c76255a4f854799f48c98128da4c8980,1ccc9f37c76255a4f854799f48c98128da4c8980..69e3d312461aead75b72649f6c1063edb8ddf28b
@@@ -13,8 -13,8 +13,6 @@@
  
  cs0229.cs NO ERROR
  cs0229-2.cs
--cs0266.cs
--cs0266-2.cs
  cs0525.cs
  cs0526.cs
  cs0547.cs