mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 14:31:55 +00:00
16 lines
356 B
Rust
16 lines
356 B
Rust
// run-pass
|
|
// aux-build:lto-syntax-extension-lib.rs
|
|
// aux-build:lto-syntax-extension-plugin.rs
|
|
// compile-flags:-C lto
|
|
// ignore-stage1
|
|
// no-prefer-dynamic
|
|
|
|
#![feature(plugin)]
|
|
#![plugin(lto_syntax_extension_plugin)] //~ WARNING compiler plugins are deprecated
|
|
|
|
extern crate lto_syntax_extension_lib;
|
|
|
|
fn main() {
|
|
lto_syntax_extension_lib::foo();
|
|
}
|