2010-06-17 Geoff Norton <gnorton@novell.com>
[mono.git] / mono / tests / nested-loops.cs
blob4475ab7d7153b92b6a5d9e176475eb03f7f8a6eb
2 public class NestedLoop {
3 static public int Main() {
4 int n = 16;
5 int x = 0;
6 int a = n;
7 while (a-- != 0) {
8 int b = n;
9 while (b-- != 0) {
10 int c = n;
11 while (c-- != 0) {
12 int d = n;
13 while (d-- != 0) {
14 int e = n;
15 while (e-- != 0) {
16 int f = n;
17 while (f-- != 0) {
18 x++;
25 if (x != 16777216)
26 return 1;
27 return 0;