diff options
author | Richard L Ford <richford@microsoft.com> | 2015-12-03 00:23:02 -0800 |
---|---|---|
committer | Richard L Ford <richford@microsoft.com> | 2015-12-07 20:50:02 -0800 |
commit | 99570b16c3a852abc18706c336103c5352f41ba2 (patch) | |
tree | 42c28d2fc2c53d65c5ec59aee97553f67c8f9c07 /tests/src/JIT/Regression/CLR-x86-JIT/V1-M12-Beta2/b56772/b56772.cs | |
parent | 01fdf5036c24468185e7b6f01976100424183be2 (diff) | |
download | coreclr-99570b16c3a852abc18706c336103c5352f41ba2.tar.gz coreclr-99570b16c3a852abc18706c336103c5352f41ba2.tar.bz2 coreclr-99570b16c3a852abc18706c336103c5352f41ba2.zip |
Port more C# unit tests
The project files were generated automatically from a database
and the source files scrubbed and formatted.
In addition, some added tests are still failing. Issues were
created for these and exclusions added, for windows and for
non-windows.
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 |