1  /* Verify proper errors are generated for functions taking too many
       2     arguments.  */
       3  /* { dg-do compile } */
       4  /* { dg-options "-O0" } */
       5  
       6  int
       7  foo (int a1,  /* { dg-error "too many function arguments" } */
       8       int a2,
       9       int a3,
      10       int a4,
      11       int a5,
      12       int a6)
      13  {
      14    return a6;
      15  }