comparison tests/parser/alias_1.d @ 208:41ccd50e7cbc

Added missing tests
author Anders Johnsen <skabet@gmail.com>
date Tue, 12 Aug 2008 18:21:06 +0200
parents
children
comparison
equal deleted inserted replaced
207:e0551773a005 208:41ccd50e7cbc
1
2 int foo(int x)
3 {
4 return x + 6;
5 }
6
7 alias foo bar;
8 alias int* i;
9 alias int A;
10 alias int B;
11
12 int main()
13 {
14 int x = bar(5);
15 i y = &x;
16
17 A a = 5;
18 B b = a;
19
20 return 11 - *y;
21 }