* TextControl.cs: Make this operation undoable.
[mono-project.git] / mono / tests / gc-stress.cs
blob780397e0ad44578c604a4fc5eb03c2ddb50b3c04
1 using System;
3 class T {
5 static int count = 1000000;
6 static int loops = 20;
7 static object obj;
8 static object obj2;
10 static void work () {
11 for (int i = 0; i < count; ++i) {
12 obj = new object ();
13 obj2 = i;
16 static void Main (string[] args) {
17 if (args.Length > 0)
18 loops = int.Parse (args [0]);
19 if (args.Length > 1)
20 count = int.Parse (args [1]);
21 for (int i = 0; i < loops; ++i) {
22 work ();