Reduce TLS accesses. (#11487)
[mono-project.git] / mono / tests / stringbuilder.cs
blobc125a506942d8de0a4213222abf7f0931ed53b23
1 using System.Text;
3 namespace test {
4 public class Test {
5 public static int Main() {
6 StringBuilder b = new StringBuilder ();
7 /*b.Append ('A');
8 b.Append ('b');
9 b.Append ('r');*/
10 b.Append ("Abr");
11 if (b.ToString() != "Abr") {
12 System.Console.WriteLine ("Got: " + b.ToString());
13 return 1;
15 b.Append ('a');
16 b.Append ("cadabra");
17 if (b.ToString() != "Abracadabra") {
18 System.Console.WriteLine ("Got: " + b.ToString());
19 return 2;
21 return 0;