projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[TSan] Unlocking MonoStats, GCStats and JITGCStats (#5381)
[mono.git]
/
mono
/
mini
/
basic-math.cs
diff --git
a/mono/mini/basic-math.cs
b/mono/mini/basic-math.cs
index 9a1fcb9406cd97e0c3887220e7f1df61fdef5600..a5aeb9cc8a9eac5d8e28873b5f53601acff087bd 100644
(file)
--- a/
mono/mini/basic-math.cs
+++ b/
mono/mini/basic-math.cs
@@
-257,6
+257,14
@@
class Tests
return 0;
}
+ public static int test_0_float_abs () {
+ float f = -1.0f;
+
+ if (Math.Abs (f) != 1.0f)
+ return 1;
+ return 0;
+ }
+
public static int test_0_round () {
if (Math.Round (5.0) != 5.0)
return 1;