summaryrefslogtreecommitdiffstats
path: root/src/test/incremental/no_mangle.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/incremental/no_mangle.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/incremental/no_mangle.rs b/src/test/incremental/no_mangle.rs
new file mode 100644
index 000000000..b1c9b2bc3
--- /dev/null
+++ b/src/test/incremental/no_mangle.rs
@@ -0,0 +1,10 @@
+// revisions:cfail1 cfail2
+// check-pass
+// compile-flags: --crate-type cdylib
+
+#![deny(unused_attributes)]
+
+#[no_mangle]
+pub extern "C" fn rust_no_mangle() -> i32 {
+ 42
+}