]> git.lizzy.rs Git - rust.git/blobdiff - src/test/auxiliary/crateresolve1-1.rs
auto merge of #15421 : catharsis/rust/doc-ffi-minor-fixes, r=alexcrichton
[rust.git] / src / test / auxiliary / crateresolve1-1.rs
index a91eda1574022a5ed07baab25de0877058e6199c..e26ea7c4fa6d0b73b79e49c83722512ccd5549fa 100644 (file)
@@ -1,6 +1,15 @@
-#[link(name = "crateresolve1",
-       vers = "0.1")];
+// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
 
-#[crate_type = "lib"];
+// compile-flags:-C extra-filename=-1
+#![crate_name = "crateresolve1"]
+#![crate_type = "lib"]
 
-fn f() -> int { 10 }
+pub fn f() -> int { 10 }