comparison tests/parser/alias_1.d @ 194:08f68d684047

Rename some files. Hopefully we can get a more iterative sema pass, that's a lot easier to "get startet with". Also added support for alias.
author Anders Johnsen <skabet@gmail.com>
date Tue, 29 Jul 2008 13:54:44 +0200
parents
children 4e1a7265d620
comparison
equal deleted inserted replaced
193:658178183018 194:08f68d684047
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 }