(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
qual-return-7.c
       1  /* Same as qual-return-3.c but with nested functions.
       2     { dg-do compile }
       3     { dg-options "-std=gnu99" } */
       4  
       5  void test_local (void)
       6  {
       7    auto int foo ();                /* { dg-message "note: previous declaration" "different qualifiers" } */
       8  
       9    const int foo () { return 0; }  /* { dg-error "conflicting types" "different qualifiers" } */
      10  
      11    auto void bar (void);
      12    volatile void bar () { }        /* { dg-warning "qualified|volatile" "different qualifiers" } */
      13  
      14    auto volatile void baz (void);
      15    void baz () { }                 /* { dg-warning "not compatible" "different qualifiers" } */
      16  }
      17  
      18  /* { dg-prune-output "nested function 'foo' declared but never defined" } */