test: Fix android tests
This compile-fail test didn't have a main function for architectures other than x86
This commit is contained in:
parent
af9368452d
commit
6a7306fdab
1 changed files with 2 additions and 3 deletions
|
|
@ -9,6 +9,8 @@
|
|||
// except according to those terms.
|
||||
|
||||
// ignore-fast #[feature] doesn't work with check-fast
|
||||
// ignore-android
|
||||
|
||||
#[feature(asm)];
|
||||
|
||||
#[allow(dead_code)];
|
||||
|
|
@ -33,9 +35,6 @@ pub fn main() {
|
|||
assert_eq!(x, 13);
|
||||
}
|
||||
|
||||
// #[cfg(not(target_arch = "x86"), not(target_arch = "x86_64"))]
|
||||
// pub fn main() {}
|
||||
|
||||
// At least one error is needed so that compilation fails
|
||||
#[static_assert]
|
||||
static b: bool = false; //~ ERROR static assertion failed
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue