Fix a bunch of data races.
[mono-project.git] / mono / benchmark / cmov1.cs
blobd0c0d007e77b4997430291db95b59c818a80479e
1 using System;
2 class T {
3 static void Main () {
4 int y = 0;
5 int z = 1;
6 for (int i = 0; i < 500000000; i ++) {
7 if (y == 0)
8 z = i;
10 if (y == 4)
11 y = i;
13 if (z == 0)
14 y = 1;
16 if (y == 1)
17 z = i;
19 if (y == 1)
20 y = i;
22 if (z == 2)
23 y = z;
24 else
25 y = i;