URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [gcc.dg/] [Wwrite-strings-1.c] - Rev 298
Go to most recent revision | Compare with Previous | Blame | View Log
/* Test pointer initialization and dereference don't lose qualifiers on array types. This test wrongly failed to diagnose the loss of const. */ /* Origin: Joseph Myers <joseph@codesourcery.com> */ /* { dg-do compile } */ /* { dg-options "-Wwrite-strings" } */ typedef char T[1]; T *p = &""; /* { dg-warning "initialization from incompatible pointer type" } */
Go to most recent revision | Compare with Previous | Blame | View Log