view gcc/testsuite/c-c++-common/dump-ada-spec-2.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
line wrap: on
line source

/* { 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 } } */