projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #4185 from BrzVlad/fix-arm64-finally-abort
[mono.git]
/
mcs
/
tests
/
gtest-etree-01.cs
diff --git
a/mcs/tests/gtest-etree-01.cs
b/mcs/tests/gtest-etree-01.cs
index e538021cd0aff253f68ddc97dfe97a30991ec39a..785407e3ac92e892ded9187ef2948a8caba13bfd 100644
(file)
--- a/
mcs/tests/gtest-etree-01.cs
+++ b/
mcs/tests/gtest-etree-01.cs
@@
-722,6
+722,13
@@
class Tester
e9.Compile ().Invoke (1);
}
e9.Compile ().Invoke (1);
}
+ void CallTest_10 ()
+ {
+ Expression<Func<string>> e = () => $"{int.MaxValue}";
+ AssertNodeType (e, ExpressionType.Call);
+ Assert (int.MaxValue.ToString (), e.Compile ().Invoke ());
+ }
+
void CoalesceTest ()
{
Expression<Func<uint?, uint>> e = (uint? a) => a ?? 99;
void CoalesceTest ()
{
Expression<Func<uint?, uint>> e = (uint? a) => a ?? 99;
@@
-2190,6
+2197,13
@@
class Tester
Assert<MyEnum> (0, e.Compile ().Invoke ());
}
Assert<MyEnum> (0, e.Compile ().Invoke ());
}
+ void NewTest_8 ()
+ {
+ Expression<Func<DateTime>> e = () => new DateTime ();
+ AssertNodeType (e, ExpressionType.New);
+ Assert (null, ((NewExpression)e.Body).Constructor, "default ctor");
+ }
+
void NotTest ()
{
Expression<Func<bool, bool>> e = (bool a) => !a;
void NotTest ()
{
Expression<Func<bool, bool>> e = (bool a) => !a;