ldc/tests/codegen/static_array_huge.d
2017-10-07 14:06:17 +02:00

12 lines
299 B
D

// Tests that static arrays can be large (> 16MB)
// RUN: %ldc -c -output-ll -of=%t.ll %s && FileCheck %s < %t.ll
// CHECK: Stuff = type { [209715200 x i8] }
struct Stuff
{
byte[1024*1024*200] a;
}
// CHECK: hugeArrayG209715200g{{\"?}} ={{.*}} [209715200 x i8]
byte[1024*1024*200] hugeArray;