diff options
Diffstat (limited to 'tests/src/JIT/Regression/CLR-x86-JIT/V1-M12-Beta2/b56772/b56772.cs')
-rw-r--r-- | tests/src/JIT/Regression/CLR-x86-JIT/V1-M12-Beta2/b56772/b56772.cs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/src/JIT/Regression/CLR-x86-JIT/V1-M12-Beta2/b56772/b56772.cs b/tests/src/JIT/Regression/CLR-x86-JIT/V1-M12-Beta2/b56772/b56772.cs new file mode 100644 index 0000000000..a2053fcb64 --- /dev/null +++ b/tests/src/JIT/Regression/CLR-x86-JIT/V1-M12-Beta2/b56772/b56772.cs @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System; +using System.Text; + +public class InternTest +{ + public static int Main(String[] args) + { + StringBuilder sb = new StringBuilder().Append('A').Append('B').Append('C'); + + switch (sb.ToString()) + { + case "ABC": + Console.WriteLine("Worked Correctly"); + return 100; + default: + Console.WriteLine("FAILED!"); + return 1; + } + } +}
\ No newline at end of file |