1// Assumes proc-macro2's "span-locations" feature is off.
2
3#![cfg(target_pointer_width = "64")]
4
5use std::mem;
6use syn::{Expr, Item, Lit, Pat, Type};
7
8#[rustversion::attr(before(2022-11-24), ignore)]
9#[test]
10fn test_expr_size() {
11 assert_eq!(mem::size_of::<Expr>(), 176);
12}
13
14#[rustversion::attr(before(2022-09-09), ignore)]
15#[test]
16fn test_item_size() {
17 assert_eq!(mem::size_of::<Item>(), 360);
18}
19
20#[rustversion::attr(before(2023-04-29), ignore)]
21#[test]
22fn test_type_size() {
23 assert_eq!(mem::size_of::<Type>(), 232);
24}
25
26#[rustversion::attr(before(2023-04-29), ignore)]
27#[test]
28fn test_pat_size() {
29 assert_eq!(mem::size_of::<Pat>(), 184);
30}
31
32#[rustversion::attr(before(2022-09-09), ignore)]
33#[test]
34fn test_lit_size() {
35 assert_eq!(mem::size_of::<Lit>(), 32);
36}
37