(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
c2x-stdarg-1.c
       1  /* Test C2x variadic functions with no named parameters.  Compilation tests,
       2     valid code.  */
       3  /* { dg-do compile } */
       4  /* { dg-options "-std=c2x -pedantic-errors" } */
       5  
       6  int f (...);
       7  int g (int (...));
       8  int h (...) { return 0; }
       9  
      10  typedef int A[];
      11  typedef int A2[2];
      12  
      13  A *f1 (...);
      14  A2 *f1 (...);
      15  A *f1 (...) { return 0; }
      16  
      17  A2 *f2 (...);
      18  A *f2 (...);
      19  A2 *f2 (...) { return 0; }
      20  typeof (f1) f2;
      21  
      22  int t () { return f () + f (1) + f (1, 2) + h () + h (1.5, 2, f1) + g (f); }