Skip to content

Commit 417e54e

Browse files
committed
test: Fix android tests
This compile-fail test didn't have a main function for architectures other than x86
1 parent af93684 commit 417e54e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/test/compile-fail/asm-misplaced-option.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@ pub fn main() {
3333
assert_eq!(x, 13);
3434
}
3535

36-
// #[cfg(not(target_arch = "x86"), not(target_arch = "x86_64"))]
37-
// pub fn main() {}
36+
#[cfg(not(target_arch = "x86"),
37+
not(target_arch = "x86_64"))]
38+
pub fn main() {}
3839

3940
// At least one error is needed so that compilation fails
4041
#[static_assert]

0 commit comments

Comments
 (0)