summaryrefslogtreecommitdiff
path: root/tests/usr.bin/xlint/lint1/msg_254.c
blob: 0b0fe1db58c25aa5651152a3409988ff913510a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*	$NetBSD: msg_254.c,v 1.4 2022/06/17 18:54:53 rillig Exp $	*/
# 3 "msg_254.c"

/* Test for message: newline in string or char constant [254] */

/* lint1-flags: -tw */

/*
 * The sequence backslash-newline is a GCC extension.
 * C99 does not allow it.
 */

/* expect+6: error: newline in string or char constant [254] */
/* expect+5: error: unterminated string constant [258] */
/* expect+4: error: syntax error '"' [249] */
/* expect+4: error: newline in string or char constant [254] */
/* expect+3: error: unterminated string constant [258] */
"line1
line2"