summaryrefslogtreecommitdiffstats
path: root/src/test/ui-fulldeps/lto-syntax-extension.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui-fulldeps/lto-syntax-extension.rs')
-rw-r--r--src/test/ui-fulldeps/lto-syntax-extension.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/ui-fulldeps/lto-syntax-extension.rs b/src/test/ui-fulldeps/lto-syntax-extension.rs
new file mode 100644
index 000000000..5964e70f1
--- /dev/null
+++ b/src/test/ui-fulldeps/lto-syntax-extension.rs
@@ -0,0 +1,15 @@
+// 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();
+}