Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / benchmark / cmov3.cs
1 using System;
2 class T {
3         // test x ? A : B where A and B are constants.
4         static void Main () {
5                 int a = 0, b = 0, c = 0, d = 0, e = 0;
6                 for (int i = 0; i < 50000000; i ++) {                   
7                         a = b == 10 ?  1 :  1;
8                         b = b >  1  ?  9 :  8;
9                         c = b <= c  ?  1 :  2;
10                         d = d >  0  ?  1 :  0;
11                         e = e == 0  ? -1 :  0;
12                 }
13         }
14 }