diff options
author | nobody <nobody@localhost> | 2002-08-21 14:08:33 +0400 |
---|---|---|
committer | nobody <nobody@localhost> | 2002-08-21 14:08:33 +0400 |
commit | 4e4824afab6cd0f9f0d71aa6baeddb7bee74f8c4 (patch) | |
tree | 4f2f12d32cc0fbc38f5ae17dd88b54f7f7d4773b /mcs/tests/test-133.cs | |
parent | 5a04c908e923e4d919c9c0aed1129f8416adb6cc (diff) |
This commit was manufactured by cvs2svn to create branch 'SAVANNAH_CVS'.RHYS_20020821
svn path=/branches/SAVANNAH_CVS/mcs/; revision=6844
Diffstat (limited to 'mcs/tests/test-133.cs')
-rwxr-xr-x | mcs/tests/test-133.cs | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/mcs/tests/test-133.cs b/mcs/tests/test-133.cs deleted file mode 100755 index 1e27fc40631..00000000000 --- a/mcs/tests/test-133.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System; - -public struct S { - public int a, b; -} - -class T { - enum OpCode : ushort { False } - enum OpFlags : ushort { None } - static void DecodeOp (ushort word, out OpCode op, out OpFlags flags) { - op = (OpCode)(word & 0x00ff); - flags = (OpFlags)(word & 0xff00); - } - static void get_struct (out S s) { - S ss; - ss.a = 1; - ss.b = 2; - s = ss; - } - static int Main() { - OpCode op; - OpFlags flags; - S s; - DecodeOp ((ushort)0x0203, out op, out flags); - if (op != (OpCode)0x3) - return 1; - if (flags != (OpFlags)0x200) - return 2; - get_struct (out s); - if (s.a != 1) - return 3; - if (s.b != 2) - return 4; - return 0; - } -} |