You've already forked linux-packaging-mono
Imported Upstream version 4.3.2.467
Former-commit-id: 9c2cb47f45fa221e661ab616387c9cda183f283d
This commit is contained in:
37
mcs/tests/gtest-636.cs
Normal file
37
mcs/tests/gtest-636.cs
Normal file
@@ -0,0 +1,37 @@
|
||||
using System;
|
||||
|
||||
class MainClass
|
||||
{
|
||||
public static int Main ()
|
||||
{
|
||||
var res = XX () | YY();
|
||||
if (!res.Value)
|
||||
return 1;
|
||||
|
||||
if (xx != 1)
|
||||
return 2;
|
||||
|
||||
if (yy != 1)
|
||||
return 2;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int xx;
|
||||
static bool XX ()
|
||||
{
|
||||
++xx;
|
||||
Console.WriteLine ("XX");
|
||||
return true;
|
||||
}
|
||||
|
||||
static int yy;
|
||||
static bool? YY ()
|
||||
{
|
||||
if (xx == 1)
|
||||
++yy;
|
||||
|
||||
Console.WriteLine ("YY");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user