Mercurial > projects > ldc
view tests/mini/globals1.d @ 357:82af71383b8a trunk
[svn r378] Make some errors fatal to prevent segfaults. Error instead of assert on missing label.
Fixes: nocompile/
finally_02, 03, 07, 08
goto_16_A, 16_B, 12, 13, 14
author | ChristianK |
---|---|
date | Mon, 14 Jul 2008 12:11:30 +0200 |
parents | 1bb99290e03a |
children |
line wrap: on
line source
module globals1; extern(C) int printf(char*, ...); char[] gstr = "hello world"; void main() { printf("%.*s\n", gstr.length, gstr.ptr); char[] str = gstr; printf("%.*s\n", str.length, str.ptr); }