Skip to content

Commit 30b5670

Browse files
nikomatsakisbrson
authored andcommitted
---
yaml --- r: 5944 b: refs/heads/master c: fb48817 h: refs/heads/master v: v3
1 parent c2290a5 commit 30b5670

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 02d7a1e7818f5ff3f272fe6cba21f82ea543dc39
2+
refs/heads/master: fb48817ade1ad4b9b41315038518d8d84ff8e57c
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// xfail-test
2+
3+
import std::sys;
4+
5+
// The purpose of this test is to check that we can
6+
// successfully (and safely) invoke external, c-stack-cdecl
7+
// functions from outside the crate.
8+
9+
fn main() {
10+
let foo = sys::rustrt::last_os_error();
11+
}

trunk/src/test/stdtest/sys.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import std::sys;
22

33
#[test]
4-
fn last_os_error() unsafe { log sys::rustrt::last_os_error(); }
4+
fn last_os_error() {
5+
log sys::last_os_error();
6+
}

0 commit comments

Comments
 (0)