mirror of
https://gitee.com/openharmony/third_party_rust_syn
synced 2024-11-23 16:00:10 +00:00
30 lines
449 B
Rust
30 lines
449 B
Rust
#![cfg(target_pointer_width = "64")]
|
|
|
|
use std::mem;
|
|
use syn::*;
|
|
|
|
#[test]
|
|
fn test_expr_size() {
|
|
assert_eq!(mem::size_of::<Expr>(), 280);
|
|
}
|
|
|
|
#[test]
|
|
fn test_item_size() {
|
|
assert_eq!(mem::size_of::<Item>(), 344);
|
|
}
|
|
|
|
#[test]
|
|
fn test_type_size() {
|
|
assert_eq!(mem::size_of::<Type>(), 304);
|
|
}
|
|
|
|
#[test]
|
|
fn test_pat_size() {
|
|
assert_eq!(mem::size_of::<Pat>(), 144);
|
|
}
|
|
|
|
#[test]
|
|
fn test_lit_size() {
|
|
assert_eq!(mem::size_of::<Lit>(), 40);
|
|
}
|