Home | History | Annotate | Line # | Download | only in lint1
msg_258.c revision 1.3
      1 /*	$NetBSD: msg_258.c,v 1.3 2022/06/16 21:24:41 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: str [190] */
     16 const char str[] = "This is the end.
     17