(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
pr67964.c
       1  /* PR c/67964 */
       2  /* { dg-do compile } */
       3  /* { dg-require-alias "" } */
       4  
       5  extern int fn0 (void) __attribute__ ((const const)); /* { dg-error "expected" } */
       6  extern int fn1 (void) __attribute__ ((const, const));
       7  extern int fn2 (void) __attribute__ ((optimize (0) const)); /* { dg-error "expected" } */
       8  extern int fn3 (void) __attribute__ ((optimize (0), const));
       9  /* We allow starting/trailing comma.  */
      10  extern int fn4 (void) __attribute__ ((, const));
      11  extern int fn5 (void) __attribute__ ((const, ));
      12  extern int fn6 (void) __attribute__ ((,,,, const,,,,, ));
      13  extern int fn7 (void) __attribute__ ((,));
      14  extern int fn8 (void) __attribute__ ((__noreturn__ __noreturn__)); /* { dg-error "expected" } */
      15  extern int fn9 (void) __attribute__ ((__noreturn__, __noreturn__));
      16  extern int fn10 (void) __attribute__ ((__cold__ __pure__ __noclone__)); /* { dg-error "expected" } */
      17  extern int fn11 (void) __attribute__ ((__cold__, __pure__ __noclone__)); /* { dg-error "expected" } */
      18  int i;
      19  int ii;
      20  extern int a __attribute__ ((alias ("i") unused)); /* { dg-error "expected" } */
      21  extern int a2 __attribute__ ((alias ("i" "i")));
      22  struct A { char p[6]; } __attribute__((__packed__ packed)); /* { dg-error "expected" } */