view 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 source


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;
}