Mercurial > projects > ldc
comparison 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 |
comparison
equal
deleted
inserted
replaced
171:95f07e3f8bb9 | 172:68a7dd38c03c |
---|---|
1 extern(C) int printf(char*, ...); | |
2 | |
3 int main(char[][] args) | |
4 { | |
5 printf("getint\n"); | |
6 int i = getint(); | |
7 printf("assert true\n"); | |
8 assert(i == 1234); | |
9 printf("assert false\n"); | |
10 assert(i != 1234); | |
11 printf("return\n"); | |
12 return 0; | |
13 } | |
14 | |
15 int getint() | |
16 { | |
17 return 1234; | |
18 } |