Mercurial > projects > ldc
view tangotests/fail/p.d @ 172:68a7dd38c03c trunk
[svn r188] Fixed using a dereferenced pointer argument as both l- and r-value. fixes tango.io.FileRoots.
Reorganized the tangotests dir a bit.
author | lindquist |
---|---|
date | Tue, 06 May 2008 07:26:27 +0200 |
parents | tangotests/p.d@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; }