msg_258.c revision 1.4 1 /* $NetBSD: msg_258.c,v 1.4 2022/06/22 19:23:18 rillig Exp $ */
2 # 3 "msg_258.c"
3
4 // Test for message: unterminated string constant [258]
5
6 int dummy;
7
8 // A string literal that is not finished at the end of the line confuses the
9 // parser.
10 //
11 // "This string doesn't end in this line.
12
13 /* expect+4: error: unterminated string constant [258] */
14 /* expect+3: error: syntax error '' [249] */
15 /* expect+2: error: empty array declaration for 'str' [190] */
16 const char str[] = "This is the end.
17