Skip to content

Commit ae5ae2d

Browse files
committed
Test with the 'c' feature enabled on CI
1 parent d63757c commit ae5ae2d

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

appveyor.yml

+2
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,6 @@ test_script:
1818
- cargo build --target %TARGET%
1919
- cargo build --release --target %TARGET%
2020
- cargo test --no-default-features --features gen-tests --target %TARGET%
21+
- cargo test --no-default-features --features 'gen-tests c' --target %TARGET%
2122
- cargo test --no-default-features --features gen-tests --release --target %TARGET%
23+
- cargo test --no-default-features --features 'gen-tests c' --release --target %TARGET%

ci/run.sh

+2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ case $1 in
3434
;;
3535
*)
3636
cargo test --no-default-features --features gen-tests --target $1
37+
cargo test --no-default-features --features 'gen-tests c' --target $1
3738
cargo test --no-default-features --features gen-tests --target $1 --release
39+
cargo test --no-default-features --features 'gen-tests c' --target $1 --release
3840
;;
3941
esac
4042

examples/intrinsics.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@
66
#![allow(unused_features)]
77
#![cfg_attr(thumb, no_main)]
88
#![deny(dead_code)]
9+
#![feature(alloc_system)]
910
#![feature(asm)]
1011
#![feature(compiler_builtins_lib)]
1112
#![feature(core_float)]
1213
#![feature(lang_items)]
13-
#![feature(libc)]
1414
#![feature(start)]
1515
#![feature(i128_type)]
1616
#![no_std]
1717

1818
#[cfg(not(thumb))]
19-
extern crate libc;
19+
extern crate alloc_system;
2020
extern crate compiler_builtins;
2121

2222
// NOTE cfg(not(thumbv6m)) means that the operation is not supported on ARMv6-M at all. Not even
@@ -447,9 +447,11 @@ pub fn _Unwind_Resume() {}
447447
#[cfg(not(test))]
448448
#[lang = "eh_personality"]
449449
#[no_mangle]
450+
#[allow(private_no_mangle_fns)]
450451
extern "C" fn eh_personality() {}
451452

452453
#[cfg(not(test))]
453454
#[lang = "panic_fmt"]
454455
#[no_mangle]
456+
#[allow(private_no_mangle_fns)]
455457
extern "C" fn panic_fmt() {}

0 commit comments

Comments
 (0)