rust/src/test/auxiliary/issue-3012-1.rs

14 lines
241 B
Rust
Raw Normal View History

2012-08-15 20:34:28 -05:00
#[link(name="socketlib", vers="0.0")];
#[crate_type = "lib"];
2012-08-15 20:34:28 -05:00
mod socket {
export socket_handle;
2012-08-15 20:46:55 -05:00
struct socket_handle {
2012-08-15 20:34:28 -05:00
let sockfd: libc::c_int;
new(x: libc::c_int) {self.sockfd = x;}
drop { /* c::close(self.sockfd); */ }
}
}