This commit was manufactured by cvs2svn to create branch
[official-gcc.git] / gcc / testsuite / gcc.dg / fwritable-strings-1.c
blob652a0845fd058403161456728aa7d7e4dd5566bf
1 /* PR c/12818 */
2 /* Origin: <fnf@ninemoons.com> */
4 /* { dg-do run } */
5 /* { dg-options "-fwritable-strings" } */
6 /* { dg-error "-fwritable-strings is deprecated" "" { target *-*-* } 0 } */
8 extern void abort(void);
10 char *names[] = {"alice", "bob", "john"};
12 int main (void)
14 if (names[1][0] != 'b')
15 abort();
17 return 0;