1
Fork 0

Add test for pretty printing anonymous types

This commit is contained in:
jedel1043 2021-05-21 11:45:55 -05:00
parent 5b4bc05fa5
commit d59b1f1ef4

View file

@ -0,0 +1,24 @@
// Test for issue 85480
// Pretty print anonymous struct and union types
// pp-exact
// pretty-compare-only
struct Foo {
_: union {
_: struct {
a: u8,
b: u16,
},
c: u32,
},
d: u64,
e: f32,
}
type A =
struct {
field: u8,
};
fn main() { }