Skip to content

Commit 2f3ef5c

Browse files
Move intrinsics tests into tests/compile since they only need to compile
1 parent 7e1777a commit 2f3ef5c

2 files changed

Lines changed: 2 additions & 17 deletions

File tree

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
// Compiler:
2-
//
3-
// Run-time:
4-
// status: 0
52

63
// FIXME: Remove this test once rustc's `./tests/codegen/riscv-abi/call-llvm-intrinsics.rs`
74
// stops ignoring GCC backend.
85

96
#![feature(link_llvm_intrinsics)]
7+
#![crate_type = "lib"]
108
#![allow(internal_features)]
119

1210
struct A;
@@ -32,7 +30,3 @@ pub fn do_call() {
3230
sqrt(4.0);
3331
}
3432
}
35-
36-
fn main() {
37-
do_call();
38-
}
Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
// Compiler:
2-
//
3-
// Run-time:
4-
// status: 0
52

63
// FIXME: Remove this test once <tests/run-make/simd-ffi/simd.rs> stops
74
// ignoring GCC backend.
85

96
#![allow(internal_features, non_camel_case_types)]
7+
#![crate_type = "lib"]
108
// we can compile to a variety of platforms, because we don't need
119
// cross-compiled standard libraries.
1210
#![feature(no_core, auto_traits)]
@@ -93,10 +91,3 @@ macro_rules! Copy {
9391
macro_rules! derive {
9492
() => {};
9593
}
96-
97-
#[lang = "start"]
98-
fn start<T>(_main: fn() -> T, _argc: isize, _argv: *const *const u8, _sigpipe: u8) -> isize {
99-
0
100-
}
101-
102-
fn main() {}

0 commit comments

Comments
 (0)