Mercurial > projects > ldc
view tests/mini/globals1.d @ 1543:21d691518d82
Use TargetRegistry instead of TargetMachineRegistry for Target lookups
This fixes the build for LLVM >= r75774 and will probably break older
LLVM revs.
author | Benjamin Kramer <benny.kra@gmail.com> |
---|---|
date | Wed, 15 Jul 2009 23:01:51 +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); }