2019-07-27 00:54:25 +03:00
|
|
|
// run-pass
|
2015-07-27 10:14:48 -07:00
|
|
|
// aux-build:lto-syntax-extension-lib.rs
|
|
|
|
// aux-build:lto-syntax-extension-plugin.rs
|
|
|
|
// compile-flags:-C lto
|
|
|
|
// ignore-stage1
|
|
|
|
// no-prefer-dynamic
|
2015-03-05 18:33:58 -08:00
|
|
|
|
2015-07-27 10:14:48 -07:00
|
|
|
#![feature(plugin)]
|
2019-11-08 00:00:00 +00:00
|
|
|
#![plugin(lto_syntax_extension_plugin)] //~ WARNING compiler plugins are deprecated
|
2014-04-13 11:26:43 -07:00
|
|
|
|
2015-07-27 10:14:48 -07:00
|
|
|
extern crate lto_syntax_extension_lib;
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
lto_syntax_extension_lib::foo();
|
|
|
|
}
|