tree: Don't reuse types if TYPE_USER_ALIGN differ [PR94775]
[official-gcc.git] / gcc / testsuite / g++.dg / warn / Wwrite-strings-6.C
blobff89f3894bc15906352d57f6381e9e839648faaa
1 // PR c++/79791
2 // { dg-do compile { target c++11 } }
3 // { dg-options "-Werror=write-strings -Wno-pedantic" }
4 // { dg-message "some warnings being treated as errors" "" { target *-*-* } 0 }
6 char *s = "foo"; // { dg-error "ISO C\\+\\+ forbids converting a string constant" }