Home | History | Annotate | Line # | Download | only in lint1
msg_254.c revision 1.4
      1 /*	$NetBSD: msg_254.c,v 1.4 2022/06/17 18:54:53 rillig Exp $	*/
      2 # 3 "msg_254.c"
      3 
      4 /* Test for message: newline in string or char constant [254] */
      5 
      6 /* lint1-flags: -tw */
      7 
      8 /*
      9  * The sequence backslash-newline is a GCC extension.
     10  * C99 does not allow it.
     11  */
     12 
     13 /* expect+6: error: newline in string or char constant [254] */
     14 /* expect+5: error: unterminated string constant [258] */
     15 /* expect+4: error: syntax error '"' [249] */
     16 /* expect+4: error: newline in string or char constant [254] */
     17 /* expect+3: error: unterminated string constant [258] */
     18 "line1
     19 line2"
     20