URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [format/] [diag-2.c] - Rev 298
Compare with Previous | Blame | View Log
/* Test for format diagnostics. Proper type names (bug 1027). */ /* Origin: Joseph Myers <jsm@polyomino.org.uk> */ /* { dg-do compile } */ /* { dg-options "-std=gnu99 -Wformat" } */ #include "format.h" void foo (double d) { printf ("%s", &d); /* { dg-warning "char \\*" "correct arg type" } */ scanf ("%zu", &d); /* { dg-warning "size_t \\*" "correct arg type" } */ }