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