summaryrefslogtreecommitdiff
path: root/gcc/testsuite/objc.dg/encode-10.m
blob: bdfdb82b8d21f5b266b6d5d0c78afda9754784cf (plain)
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}" } }  */