1#![cfg(target_pointer_width = "64")]
2
3use std::mem;
4use syn::{Expr, Item, Lit, Pat, Type};
5
6#[test]
7fn test_expr_size() {
8 assert_eq!(mem::size_of::<Expr>(), 272);
9}
10
11#[test]
12fn test_item_size() {
13 assert_eq!(mem::size_of::<Item>(), 320);
14}
15
16#[test]
17fn test_type_size() {
18 assert_eq!(mem::size_of::<Type>(), 288);
19}
20
21#[test]
22fn test_pat_size() {
23 assert_eq!(mem::size_of::<Pat>(), 144);
24}
25
26#[test]
27fn test_lit_size() {
28 assert_eq!(mem::size_of::<Lit>(), 32);
29}
30