modernc.org/ccgo/v3@v3.16.14/lib/testdata/gcc-9.1.0/gcc/testsuite/gcc.c-torture/compile/20010611-1.c (about)

     1  /* Origin: PR c/3116 from Andreas Jaeger <aj@suse.de>.  */
     2  /* When determining type compatibility of function types, we must remove
     3     qualifiers from argument types.  We used to fail to do this properly
     4     in store_parm_decls when comparing prototype and non-prototype
     5     declarations.  */
     6  struct _IO_FILE {
     7    int _flags;
     8  };
     9  
    10  typedef struct _IO_FILE __FILE;
    11  typedef struct _IO_FILE _IO_FILE;
    12  typedef long int wchar_t;
    13  
    14  extern wchar_t *fgetws (wchar_t *__restrict __ws, int __n,
    15                          __FILE *__restrict __stream);
    16  
    17  wchar_t *
    18  fgetws (buf, n, fp)
    19       wchar_t *buf;
    20       int n;
    21       _IO_FILE *fp;
    22  {
    23    return (wchar_t *)0;
    24  }