1 // Test that AST json serialization doesn't ICE (#63728).
3 // revisions: expand noexpand
5 //[expand] compile-flags: -Zast-json
6 //[noexpand] compile-flags: -Zast-json-noexpand
9 // dont-check-compiler-stdout - don't check for any AST change.
20 fn read(&self) -> Self::Output;
21 fn write(&mut self, _: Self::Output);
24 macro_rules! call_println {
25 ($y:ident) => { println!("{}", $y) }
29 #[cfg(any(target_arch = "x86",
30 target_arch = "x86_64",
32 target_arch = "aarch64"))]
33 unsafe { llvm_asm!(""::::); }
36 let y = x as i64<> + 5;
43 // Regressions tests for issues #78398 and #78510 (captured tokens in associated and foreign items)
47 macro_rules! mac_extern {
52 macro_rules! mac_assoc {