-
Notifications
You must be signed in to change notification settings - Fork 13k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
compiletest: ignore tests on a per-revision basis
Otherwise something that ought to seemingly work like `//[x86] needs-llvm-components: x86` or `//[nll_beyond]should-fail` do not get evaluated properly.
- Loading branch information
Showing
17 changed files
with
357 additions
and
383 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/test/ui/borrowck/two-phase-reservation-sharing-interference.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 11 additions & 3 deletions
14
src/test/ui/cmse-nonsecure/cmse-nonsecure-call/params-on-registers.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
src/test/ui/cmse-nonsecure/cmse-nonsecure-call/wrong-abi-location-1.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
// compile-flags: --target thumbv8m.main-none-eabi --crate-type lib | ||
// needs-llvm-components: arm | ||
#![feature(abi_c_cmse_nonsecure_call)] | ||
#![no_std] | ||
#![feature(abi_c_cmse_nonsecure_call, lang_items, no_core)] | ||
#![no_core] | ||
#[lang="sized"] | ||
trait Sized { } | ||
|
||
pub extern "C-cmse-nonsecure-call" fn test() {} //~ ERROR [E0781] |
8 changes: 4 additions & 4 deletions
8
src/test/ui/cmse-nonsecure/cmse-nonsecure-call/wrong-abi-location-1.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
src/test/ui/cmse-nonsecure/cmse-nonsecure-call/wrong-abi-location-2.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/test/ui/cmse-nonsecure/cmse-nonsecure-call/wrong-abi-location-2.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 8 additions & 4 deletions
12
src/test/ui/cmse-nonsecure/cmse-nonsecure-entry/params-on-registers.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
// build-pass | ||
// compile-flags: --target thumbv8m.main-none-eabi --crate-type lib | ||
// needs-llvm-components: arm | ||
#![feature(cmse_nonsecure_entry)] | ||
#![no_std] | ||
#![feature(cmse_nonsecure_entry, no_core, lang_items)] | ||
#![no_core] | ||
#[lang="sized"] | ||
trait Sized { } | ||
#[lang="copy"] | ||
trait Copy { } | ||
|
||
#[no_mangle] | ||
#[cmse_nonsecure_entry] | ||
pub extern "C" fn entry_function(a: u32, b: u32, c: u32, d: u32) -> u32 { | ||
a + b + c + d | ||
pub extern "C" fn entry_function(_: u32, _: u32, _: u32, d: u32) -> u32 { | ||
d | ||
} |
1 change: 1 addition & 0 deletions
1
src/test/ui/cmse-nonsecure/cmse-nonsecure-entry/params-on-stack.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 7 additions & 4 deletions
11
src/test/ui/cmse-nonsecure/cmse-nonsecure-entry/wrong-abi.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
// compile-flags: --target thumbv8m.main-none-eabi --crate-type lib | ||
// needs-llvm-components: arm | ||
#![feature(cmse_nonsecure_entry)] | ||
#![no_std] | ||
#![feature(cmse_nonsecure_entry, no_core, lang_items)] | ||
#![no_core] | ||
#[lang="sized"] | ||
trait Sized { } | ||
|
||
#[no_mangle] | ||
#[cmse_nonsecure_entry] | ||
pub fn entry_function(a: u32, b: u32, c: u32, d: u32) -> u32 { //~ ERROR [E0776] | ||
a + b + c + d | ||
//~^ ERROR `#[cmse_nonsecure_entry]` requires C ABI [E0776] | ||
pub fn entry_function(_: u32, _: u32, _: u32, d: u32) -> u32 { | ||
d | ||
} |
4 changes: 2 additions & 2 deletions
4
src/test/ui/cmse-nonsecure/cmse-nonsecure-entry/wrong-abi.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.