We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a24ee8 commit cb55279Copy full SHA for cb55279
src/test/run-pass/intrinsic-alignment.rs
@@ -51,6 +51,15 @@ mod m {
51
assert_eq!(::rusti::min_align_of::<u64>(), 8u);
52
}
53
54
+
55
+ #[main]
56
+ #[cfg(target_arch = "x86_64")]
57
+ pub fn main() {
58
+ unsafe {
59
+ assert_eq!(::rusti::pref_align_of::<u64>(), 8u);
60
+ assert_eq!(::rusti::min_align_of::<u64>(), 8u);
61
+ }
62
63
64
65
#[cfg(target_os = "android")]
src/test/run-pass/rec-align-u64.rs
@@ -61,6 +61,12 @@ mod m {
pub fn align() -> uint { 8u }
pub fn size() -> uint { 16u }
66
+ pub mod m {
67
+ pub fn align() -> uint { 8u }
68
+ pub fn size() -> uint { 16u }
69
70
71
72
0 commit comments