view tests/mini/void1.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

extern(C) int printf(char*, ...);

void main()
{
     int[0][10] arr;
     printf("%u\n", &arr[9] - &arr[0]);
     int[0] arr1;
     printf("%p\n", &arr1);
     void[0] arr2;
     printf("%p\n", &arr2);
}