blob: fd48500d5a3bfbe5e80a0ffb40252c0237670d2a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
/* $NetBSD: msg_258.c,v 1.5 2023/03/28 14:44:35 rillig Exp $ */
# 3 "msg_258.c"
// Test for message: unterminated string constant [258]
/* lint1-extra-flags: -X 351 */
int dummy;
// A string literal that is not finished at the end of the line confuses the
// parser.
//
// "This string doesn't end in this line.
/* expect+4: error: unterminated string constant [258] */
/* expect+3: error: syntax error '' [249] */
/* expect+2: error: empty array declaration for 'str' [190] */
const char str[] = "This is the end.
|