summaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/dump-ada-spec-2.c
blob: 46eedb582bb67db100a5a0e020f4e497a650cf63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/* { dg-do compile } */
/* { dg-options "-fdump-ada-spec" } */

struct S1 {
  struct {
    int i;
  } F;
};

struct S2 {
  union {
    int i;
  } F;
};

struct S3 {
  struct {
    int i;
  } F[2];
};

struct S4 {
  struct {
    struct S4 *next;
  } F;
};

struct S5 {
  struct {
    struct S5 *next;
  } F[2];
};

struct S6 {
  struct {
    struct S6 *next[2];
  } F;
};

struct S7 {
  struct {
    int i;
  } F1[2];
  struct {
    float f;
  } F2[2];
};

/* { dg-final { cleanup-ada-spec } } */