Mercurial > projects > ldc
view tests/mini/nested20.d @ 951:e71c61befd6d
Now that we're using LLVM 2.5, we can stop always running the
CFGSimplification pass.
The pass was originally added as a workaround for a LLVM 2.4 bug where debug
info would reference labels that have been optimized away.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Thu, 12 Feb 2009 18:39:03 +0100 |
parents | 720ec515c300 |
children |
line wrap: on
line source
extern(C) int printf(char*, ...); void main() { int[] arr = [1]; foreach(s; arr) { void foo() { printf("n %d\n", s); } printf("o1 %d\n", s); foo(); printf("o2 %d\n", s); } }