ldc/tests/codegen/static_array_huge.d
Martin Kinkelin a6ed0e500f Emit struct TypeInfos in referencing CUs only
I.e., not in their owning CU if unused therein, but in all referencing
CUs instead, as linkonce_odr. The special member functions are still
only and unconditionally emitted in the owning CU.
2020-10-11 14:34:49 +02:00

13 lines
312 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;
}
Stuff stuff;
// CHECK: hugeArrayG209715200g{{\"?}} ={{.*}} [209715200 x i8]
byte[1024*1024*200] hugeArray;