diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2019-11-24 15:44:39 +0100 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2019-11-24 15:44:39 +0100 |
| commit | e9d3569e08987e3d034a6c239d71ef8ec15c7cf2 (patch) | |
| tree | 3a2bd94c6c05de697e0085f621d545abc78e93c6 /example/std_example.rs | |
| parent | 53e083323257d0d79d9f0b2d365232a3c1f085ca (diff) | |
| download | rust-e9d3569e08987e3d034a6c239d71ef8ec15c7cf2.tar.gz rust-e9d3569e08987e3d034a6c239d71ef8ec15c7cf2.zip | |
Run libcore tests
Diffstat (limited to 'example/std_example.rs')
| -rw-r--r-- | example/std_example.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/example/std_example.rs b/example/std_example.rs index d6734e74498..eccffc62140 100644 --- a/example/std_example.rs +++ b/example/std_example.rs @@ -1,4 +1,5 @@ #![feature(core_intrinsics)] +#![feature(is_sorted)] use std::arch::x86_64::*; use std::io::Write; @@ -76,6 +77,9 @@ fn main() { let _a = 1u32 << 2u8; + let empty: [i32; 0] = []; + assert!(empty.is_sorted()); + println!("{:?}", unsafe { std::intrinsics::caller_location() }); unsafe { |
