summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/Wbuiltin-declaration-mismatch-6.c
blob: 32af9febfaf7a99c0357a5b988e45d57596f9152 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* PR c/86125 - missing -Wbuiltin-declaration-mismatch on a mismatched
   return type
   Verify that declarations of file I/O built-ins with an arbitrary
   object pointer do not trigger -Wbuiltin-declaration-mismatch.
   { dg-do compile }
   { dg-options "-Wbuiltin-declaration-mismatch -Wextra" } */

typedef __SIZE_TYPE__ size_t;

struct StdioFile;

int fprintf (struct StdioFile*, const char*, ...);
int vfprintf (struct StdioFile*, const char*, __builtin_va_list);
int fputc (int, struct StdioFile*);
int fputs (const char*, struct StdioFile*);
int fscanf (struct StdioFile*, const char*, ...);
int vfscanf (struct StdioFile*, const char*, __builtin_va_list);
size_t fwrite (const void*, size_t, size_t, struct StdioFile*);