diff options
Diffstat (limited to 'tests/ui/lto/thin-lto-global-allocator.rs')
| -rw-r--r-- | tests/ui/lto/thin-lto-global-allocator.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/lto/thin-lto-global-allocator.rs b/tests/ui/lto/thin-lto-global-allocator.rs new file mode 100644 index 00000000000..e00c5caf97c --- /dev/null +++ b/tests/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() {} |
