blob: 24547d02bd806aede20d3c5dbc96a6d3773a77be [file] [log] [blame]
/* 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 discards 'const' qualifier from pointer target type" } */