(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
Wc90-c99-compat-4.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-std=gnu90 -Wpedantic -Wno-c90-c99-compat" } */
       3  
       4  _Bool b;
       5  _Complex double c = __builtin_complex (0.0, 0.0);
       6  long long l;
       7  struct A { int i; char a[]; };
       8  struct { long int b: 2; } s;
       9  const const int i;
      10  volatile volatile int v;
      11  
      12  struct S { int a[2]; };
      13  extern struct S foo (void);
      14  
      15  enum { E, };
      16  
      17  void fn1 (char [*]);
      18  
      19  void
      20  fn2 (char x[static 4])
      21  {
      22    int i = (int) { 1 };
      23    struct A a = { .i = 3 };
      24  }
      25  
      26  void
      27  fn3 (int n)
      28  {
      29    n = 3;
      30    int i;
      31  }
      32  
      33  void
      34  fn4 (int n)
      35  {
      36    n = 3;
      37    __extension__ int i;
      38  }
      39  
      40  void
      41  fn5 (void)
      42  {
      43    (foo ()).a[0];
      44  }
      45  
      46  #define F(a) a
      47  
      48  void
      49  fn6 (void)
      50  {
      51    F();
      52  }
      53  
      54  void fn7 (int n, int a[n]);