Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.dg / Wwrite-strings-1.c
blob9270e8f871269132d75ca0abd973ffbf0f5477eb
1 /* Test pointer initialization and dereference don't lose qualifiers
2 on array types. This test wrongly failed to diagnose the loss of
3 const. */
4 /* Origin: Joseph Myers <joseph@codesourcery.com> */
5 /* { dg-do compile } */
6 /* { dg-options "-Wwrite-strings" } */
7 typedef char T[1];
8 T *p = &""; /* { dg-warning "warning: initialization from incompatible pointer type" } */