mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-09 04:15:58 +03:00

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.
13 lines
312 B
D
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;
|