1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
/* { dg-do compile } */ typedef struct Vec { double x, y; int z; } xyz_t ; typedef struct { float fscalar; double dscalar; xyz_t dv; int iscalar; } anonymous; const char *enc = @encode(xyz_t); const char *enc2 = @encode(anonymous); /* { dg-final { scan-assembler "{Vec=ddi}" } } */ /* { dg-final { scan-assembler "{?=fd{Vec=ddi}i}" } } */