Files
yallie 9fa3874800 Added the contents of the archive.
Moved the original file to the archive subfolder.
2017-11-20 16:11:42 +03:00

61 lines
1.0 KiB
Plaintext

// ==++==
//
//
// Copyright (c) 2002 Microsoft Corporation. All rights reserved.
//
// The use and distribution terms for this software are contained in the file
// named license.txt, which can be found in the root of this distribution.
// By using this software in any fashion, you are agreeing to be bound by the
// terms of this license.
//
// You must not remove this notice, or any other, from this software.
//
//
// ==--==
.assembly switch.exe{}
.class public _switch {
.method public static int32 main(class [mscorlib]System.String[]) {
.entrypoint
.maxstack 10
.locals (int32)
ldc.i4 0x0
stloc 0
ldc.i4 0x0
TAG:
switch (TC1,TC2,TC3)
ldloc 0
ldc.i4 0x3
ceq
brfalse FAIL
br PASS
TC1:
ldloc 0
ldc.i4 0x1
add
stloc 0
ldc.i4 0x1
br TAG
TC2:
ldloc 0
ldc.i4 0x1
add
stloc 0
ldc.i4 0x2
br TAG
TC3:
ldloc 0
ldc.i4 0x1
add
stloc 0
ldc.i4 0x3
br TAG
br FAIL
PASS:
ldc.i4 0x0
ret
FAIL:
ldc.i4 0xAAAA
ret
}
}