diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/parser/alias_1.d	Tue Jul 29 13:54:44 2008 +0200
@@ -0,0 +1,21 @@
+
+int foo(int x)
+{
+    return x + 6;
+}
+
+alias foo bar;
+alias int** i;
+alias int A;
+alias int B;
+
+int main()
+{
+    int x = bar(5);
+    i y = &x;
+
+    A a = 5;
+    B b = a;
+
+    return 11 - *y;
+}