projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[generics.cs] test calling an interface, that's implemented by a generic value type
[mono.git]
/
mono
/
mini
/
basic-float.cs
diff --git
a/mono/mini/basic-float.cs
b/mono/mini/basic-float.cs
index ed62046b8a2cabdcab252e5020577d69e96e69cd..9415256e94fd78049813135bd7df3a1b2e723629 100644
(file)
--- a/
mono/mini/basic-float.cs
+++ b/
mono/mini/basic-float.cs
@@
-26,14
+26,14
@@
using System.Reflection;
/* A comparison made to same variable. */
#pragma warning disable 1718
/* A comparison made to same variable. */
#pragma warning disable 1718
-#if
MOBILE
+#if
__MOBILE__
class FloatTests
#else
class Tests
#endif
{
class FloatTests
#else
class Tests
#endif
{
-#if !
MOBILE
+#if !
__MOBILE__
public static int Main (string[] args) {
return TestDriver.RunTests (typeof (Tests), args);
}
public static int Main (string[] args) {
return TestDriver.RunTests (typeof (Tests), args);
}
@@
-704,6
+704,12
@@
class Tests
return (int)(f1 / f2);
}
return (int)(f1 / f2);
}
+ public static int test_1_frem_r4 () {
+ float f1 = 7.0f;
+ float f2 = 2.0f;
+ return (int)(f1 % f2);
+ }
+
public static int test_0_fcmp_eq_r4 () {
float f1 = 1.0f;
float f2 = 1.0f;
public static int test_0_fcmp_eq_r4 () {
float f1 = 1.0f;
float f2 = 1.0f;
@@
-806,5
+812,13
@@
class Tests
short b = (short)a;
return b == 127 ? 0 : 1;
}
short b = (short)a;
return b == 127 ? 0 : 1;
}
+
+ public static int test_10_rconv_to_u8 () {
+ ulong l = 10;
+ float f = (float)l;
+ l = (ulong)f;
+ return (int)l;
+ }
+
}
}