Mercurial > projects > ldc
view tests/mini/a.d @ 871:e70a0e7e2260
Apply duane's patch for align power-of-two checking in inline asm. Fixes #159
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sun, 04 Jan 2009 15:39:34 +0100 |
parents | 1bb99290e03a |
children |
line wrap: on
line source
module a; extern(C) int printf(char*, ...); int i = 42; void main() { int j; j = i; int* p; p = &j; int k = *p; assert(k == 42); byte b = -1; int i = b; assert(i == -1); int* p2 = p; printf("Done\n"); }