a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
47 lines
496 B
C#
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 ()
|
|
{
|
|
}
|
|
} |