URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 298 |
Rev 384 |
/* Test pointer initialization and dereference don't lose qualifiers
|
/* Test pointer initialization and dereference don't lose qualifiers
|
on array types. This test wrongly failed to diagnose the loss of
|
on array types. This test wrongly failed to diagnose the loss of
|
const. */
|
const. */
|
/* Origin: Joseph Myers <joseph@codesourcery.com> */
|
/* Origin: Joseph Myers <joseph@codesourcery.com> */
|
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-Wwrite-strings" } */
|
/* { dg-options "-Wwrite-strings" } */
|
typedef char T[1];
|
typedef char T[1];
|
T *p = &""; /* { dg-warning "initialization from incompatible pointer type" } */
|
T *p = &""; /* { dg-warning "initialization from incompatible pointer type" } */
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.