view tests/mini/bug59.d @ 1347:3647bef175d7

Remove some other code that tested for LLVM before r67588.
author Frits van Bommel <fvbommel wxs.nl>
date Tue, 12 May 2009 16:02:51 +0200
parents 1bb99290e03a
children
line wrap: on
line source

module bug59;

void main()
{
    int[2] a = 0;
    //func(a);
    a[0] = 1;
    int i = a[0];
    int* p = &a[0];
}

void func(int[2] a)
{
    int* p = cast(int*)a;
}

void func2(int[4] a)
{
    int* p = 3+cast(int*)a;
}