linux-packaging-mono/mcs/tests/test-debug-23.cs
Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

47 lines
496 B
C#

// Tests for explicit sequence point on non-empty stack
using System;
class Program
{
void Test_1 ()
{
Prop.BindCore();
}
void Test_2 ()
{
Prog ().BindCore();
}
void Test_3 ()
{
new Program ().BindCore ();
}
void Test_4 ()
{
Func<Program> f = () => new Program ();
f ().BindCore ();
}
public int BindCore ()
{
return 3;
}
public Program Prog ()
{
return this;
}
public Program Prop {
get {
return this;
}
}
public static void Main ()
{
}
}