|
20 | 20 | // During the merge gtNewTempAssign does not expect the source value of TYP_SIMD16
|
21 | 21 | // and the destination value of TYP_STRUCT.
|
22 | 22 |
|
| 23 | +.assembly extern System.Console |
| 24 | +{ |
| 25 | +} |
| 26 | + |
23 | 27 | .assembly extern System.Runtime
|
24 | 28 | {
|
25 | 29 | }
|
|
96 | 100 | IL_0009: ret
|
97 | 101 | }
|
98 | 102 |
|
99 |
| - .method public hidebysig static int32 Main(string[] args) cil managed |
| 103 | + .method public hidebysig static int32 MultipleReturns() cil managed |
100 | 104 | {
|
101 | 105 | .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
|
102 | 106 | 01 00 00 00
|
103 | 107 | )
|
104 |
| - .entrypoint |
105 |
| - .maxstack 8 |
106 |
| - IL_0000: ldarg.0 |
107 |
| - IL_0001: ldstr "MultipleReturns" |
108 |
| - IL_0006: call int32 [System.Runtime]System.Array::IndexOf<string>(!!0[], !!0) |
109 |
| - IL_000b: ldc.i4.m1 |
110 |
| - IL_000c: beq.s IL_001b |
111 |
| - |
112 | 108 | IL_000e: ldc.i4 0x677b
|
113 | 109 | IL_0013: call valuetype GitHub_26491/ReturnType GitHub_26491::MultipleReturns(int32)
|
114 | 110 | IL_0018: pop
|
115 |
| - IL_0019: br.s IL_0037 |
116 |
| - |
117 |
| - IL_001b: ldarg.0 |
118 |
| - IL_001c: ldstr "SingleReturnSynchronized" |
119 |
| - IL_0021: call int32 [System.Runtime]System.Array::IndexOf<string>(!!0[], !!0) |
120 |
| - IL_0026: ldc.i4.m1 |
121 |
| - IL_0027: beq.s IL_0031 |
| 111 | + IL_0037: ldc.i4.s 100 |
| 112 | + IL_0039: ret |
| 113 | + } |
122 | 114 |
|
| 115 | + .method public hidebysig static int32 SingleReturnSynchronized() cil managed |
| 116 | + { |
| 117 | + .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = ( |
| 118 | + 01 00 00 00 |
| 119 | + ) |
123 | 120 | IL_0029: call valuetype GitHub_26491/ReturnType GitHub_26491::SingleReturnSynchronized()
|
124 | 121 | IL_002e: pop
|
125 |
| - IL_002f: br.s IL_0037 |
| 122 | + IL_0037: ldc.i4.s 100 |
| 123 | + IL_0039: ret |
| 124 | + } |
126 | 125 |
|
| 126 | + .method public hidebysig static int32 SingleReturn() cil managed |
| 127 | + { |
| 128 | + .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = ( |
| 129 | + 01 00 00 00 |
| 130 | + ) |
127 | 131 | IL_0031: call valuetype GitHub_26491/ReturnType GitHub_26491::SingleReturn()
|
128 | 132 | IL_0036: pop
|
129 | 133 | IL_0037: ldc.i4.s 100
|
130 | 134 | IL_0039: ret
|
131 | 135 | }
|
| 136 | + |
| 137 | + .method public hidebysig static int32 Main() cil managed |
| 138 | + { |
| 139 | + .entrypoint |
| 140 | + .maxstack 8 |
| 141 | + |
| 142 | + ldstr "MultipleReturns" |
| 143 | + call void [System.Console]System.Console::WriteLine(string) |
| 144 | + call int32 GitHub_26491::MultipleReturns() |
| 145 | + ldc.i4 100 |
| 146 | + bne.un FAIL |
| 147 | + |
| 148 | + ldstr "SingleReturnSynchronized" |
| 149 | + call void [System.Console]System.Console::WriteLine(string) |
| 150 | + call int32 GitHub_26491::SingleReturnSynchronized() |
| 151 | + ldc.i4 100 |
| 152 | + bne.un FAIL |
| 153 | + |
| 154 | + ldstr "SingleReturn" |
| 155 | + call void [System.Console]System.Console::WriteLine(string) |
| 156 | + call int32 GitHub_26491::SingleReturn() |
| 157 | + ldc.i4 100 |
| 158 | + bne.un FAIL |
| 159 | + |
| 160 | + ldc.i4 100 |
| 161 | + ret |
| 162 | + |
| 163 | + FAIL: |
| 164 | + ldc.i4 101 |
| 165 | + ret |
| 166 | + } |
132 | 167 | }
|
0 commit comments