annotate tests/mini/scope3.d @ 883:b52d5de7783f

GC defines and linkage changes.
author Christian Kamm <kamm incasoftware de>
date Thu, 08 Jan 2009 18:20:02 +0100
parents 1bb99290e03a
children
rev   line source
lindquist@40 1 module scope3;
lindquist@270 2 extern(C) int printf(char*, ...);
lindquist@40 3 void main()
lindquist@40 4 {
lindquist@40 5 int i;
lindquist@40 6 while (i < 10) {
lindquist@40 7 scope(success) i++;
lindquist@40 8 }
lindquist@40 9 printf("%d\n", i);
lindquist@40 10 }