Home | History | Annotate | Line # | Download | only in lint1
      1 /*	$NetBSD: msg_255.c,v 1.7 2024/12/08 17:12:01 rillig Exp $	*/
      2 # 3 "msg_255.c"
      3 
      4 // Test for message: undefined or invalid '#' directive [255]
      5 
      6 /* lint1-extra-flags: -X 351 */
      7 
      8 /* expect+1: warning: undefined or invalid '#' directive [255] */
      9 #
     10 
     11 /* expect+1: warning: undefined or invalid '#' directive [255] */
     12 #pragma
     13 
     14 #pragma once
     15 
     16 /* expect+1: warning: undefined or invalid '#' directive [255] */
     17 #fatal_error
     18 
     19 /* expect+1: warning: undefined or invalid '#' directive [255] */
     20 #    ident "obsolete"
     21 
     22 /* expect+1: warning: undefined or invalid '#' directive [255] */
     23 #1
     24 
     25 // Sets the line number of the current file.
     26 # 2
     27 
     28 // Switch back to the main file.
     29 # 30 "msg_255.c"
     30 
     31 /* expect+1: warning: undefined or invalid '#' directive [255] */
     32 # 3/
     33 
     34 /* expect+1: warning: undefined or invalid '#' directive [255] */
     35 # 4 /
     36 
     37 /* expect+3: error: newline in string or char constant [254] */
     38 /* expect+2: error: unterminated string constant [258] */
     39 # 5 "unfinished
     40 
     41 // An empty string means standard input; tabs may be used for spacing.
     42 #	6	""
     43 
     44 # 45 "msg_255.c"
     45 
     46 int dummy;
     47