URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [format/] [diag-2.c] - Rev 701
Go to most recent revision | 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" } */ }
Go to most recent revision | Compare with Previous | Blame | View Log