projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2005-07-24 Atsushi Enomoto <atsushi@ximian.com>
[mono.git]
/
mcs
/
tests
/
test-48.cs
1
using System;
2
3
public class Blah {
4
5
public const int i = 5;
6
7
public static int Main ()
8
{
9
const int aaa = 1, bbb = 2;
10
const int foo = 10;
11
12
int j = Blah.i;
13
14
if (j != 5)
15
return 1;
16
17
if (foo != 10)
18
return 1;
19
20
for (int i = 0; i < 5; ++i){
21
const int bar = 15;
22
23
Console.WriteLine (bar);
24
Console.WriteLine (foo);
25
}
26
if ((aaa + bbb) != 3)
27
return 2;
28
29
Console.WriteLine ("Constant emission test okay");
30
31
return 0;
32
}
33
}