| 1 |
// PR c++/79791 |
| 2 |
// { dg-do compile { target { ! c++11 } } } |
| 3 |
// { dg-options "-Werror=write-strings" } |
| 4 |
// { dg-message "some warnings being treated as errors" "" { target *-*-* } 0 } |
| 5 |
|
| 6 |
char *s = "foo"; // { dg-error "deprecated conversion from string constant" } |