Mercurial > projects > dang
comparison tests/code/basic_1.d @ 206:d3c148ca429b
Major moving of files. all src now goes into src, all docs in docs.
author | Anders Johnsen <skabet@gmail.com> |
---|---|
date | Tue, 12 Aug 2008 18:14:56 +0200 |
parents | 2c5a8f4c254a |
children |
comparison
equal
deleted
inserted
replaced
205:8387cbaa85ab | 206:d3c148ca429b |
---|---|
1 | |
2 int x = 4; | |
3 | |
4 int main() | |
5 { | |
6 long var1 = 1; | |
7 short var2 = 2; | |
8 nice(var1, var2); | |
9 return var2; | |
10 } | |
11 | |
12 int nice(long s, short t) | |
13 { | |
14 byte x = 5 + t; | |
15 t = 5 + 1 * 5 * s + t; | |
16 return 2 * (t + -1) - x; | |
17 } | |
18 | |
19 |