1 /* PR c/83656 - missing -Wbuiltin-declaration-mismatch on declaration
4 { dg-options "-Wall" } */
6 typedef __SIZE_TYPE__
size_t;
8 /* Verify that ordinary library built-ins are not diagnosed with -Wall
9 (or by default) whether or not they take arguments (even though they
17 /* Verify mismatches in return types are diagnosed. */
18 int exit (); /* { dg-warning "\\\[-Wbuiltin-declaration-mismatch]" } */
20 /* Variadic built-ins are diagnosed with -Wall (they are, in fact,
21 diagnosed by default). */
22 int printf (); /* { dg-warning "\\\[-Wbuiltin-declaration-mismatch]" } */
23 int sprintf (); /* { dg-warning "\\\[-Wbuiltin-declaration-mismatch]" } */