projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2004-05-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
[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
}