diff options
Diffstat (limited to 'src/test/ui/lto/thin-lto-global-allocator.rs')
-rw-r--r-- | src/test/ui/lto/thin-lto-global-allocator.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/ui/lto/thin-lto-global-allocator.rs b/src/test/ui/lto/thin-lto-global-allocator.rs new file mode 100644 index 000000000..e00c5caf9 --- /dev/null +++ b/src/test/ui/lto/thin-lto-global-allocator.rs @@ -0,0 +1,7 @@ +// run-pass +// compile-flags: -Z thinlto -C codegen-units=2 + +#[global_allocator] +static A: std::alloc::System = std::alloc::System; + +fn main() {} |