libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / Wbuiltin-declaration-mismatch-ignore.c
blob732c23f91b10af2bfc716ee50a9b4cae364fe255
1 /* Check -Wbuiltin-declaration-mismatch can be ignored with pragma. */
2 /* { dg-do compile }
3 { dg-options "-Wno-implicit-function-declaration -Wno-int-conversion -Wbuiltin-declaration-mismatch" } */
5 #pragma GCC diagnostic ignored "-Wbuiltin-declaration-mismatch"
6 int foo (const char *str)
8 int i;
9 sscanf (str, "%d", &i);
10 return i;