Mercurial > projects > ldc
view tangotests/p.d @ 162:1856c62af24b trunk
[svn r178] Fixed codegen values for function arguments, the old approach was completely broken, amazing it even worked...
author | lindquist |
---|---|
date | Mon, 05 May 2008 00:56:53 +0200 |
parents | 0dec7b3727ea |
children |
line wrap: on
line source
extern(C) int printf(char*, ...); int main(char[][] args) { printf("getint\n"); int i = getint(); printf("assert true\n"); assert(i == 1234); printf("assert false\n"); assert(i != 1234); printf("return\n"); return 0; } int getint() { return 1234; }