[System.Windows.Forms] Disable failing test
[mono-project.git] / mcs / tests / test-885.cs
blob5f6fc13d3d85a7c3a9fba057904ca066010d43a0
1 using System;
2 using System.Reflection;
4 [AttributeUsage(System.AttributeTargets.All)]
5 class A : Attribute
7 public double D;
9 public A (double d)
11 this.D = d;
15 class C
17 [A (0.7f * 100.0f)]
18 static int Main ()
20 if ((int) (0.7f * 100.0f) != 69)
21 return 1;
23 if ((double) (0.7f * 100.0f) != 69.9999988079071)
24 return 2;
26 if (!Foo (0.7f * 100.0f))
27 return 3;
29 A attr = (A)MethodBase.GetCurrentMethod ().GetCustomAttributes (false) [0];
30 if (attr.D != 69.9999988079071)
31 return 4;
33 Console.WriteLine ("ok");
34 return 0;
37 static bool Foo (double d)
39 return d == 69.9999988079071;