about summary refs log tree commit diff
path: root/tests/run-make/export/compile-interface-error/liblibr.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run-make/export/compile-interface-error/liblibr.rs')
-rw-r--r--tests/run-make/export/compile-interface-error/liblibr.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/run-make/export/compile-interface-error/liblibr.rs b/tests/run-make/export/compile-interface-error/liblibr.rs
new file mode 100644
index 00000000000..906d8d7be12
--- /dev/null
+++ b/tests/run-make/export/compile-interface-error/liblibr.rs
@@ -0,0 +1,5 @@
+#![feature(export_stable)]
+
+// interface file is broken(priv fn):
+#[export_stable]
+extern "C" fn foo();