Home | History | Annotate | Line # | Download | only in lint2
emit.ln revision 1.1
      1  1.1  rillig # $NetBSD: emit.ln,v 1.1 2021/08/24 21:30:52 rillig Exp $
      2  1.1  rillig #
      3  1.1  rillig # Test emitting a lint library file.
      4  1.1  rillig 
      5  1.1  rillig # Extracted from ../lint1/emit.exp-ln.
      6  1.1  rillig 0s emit.c
      7  1.1  rillig S emit.c
      8  1.1  rillig 
      9  1.1  rillig # Global variables that are declared using 'extern' are not part of a
     10  1.1  rillig # library's interface, therefore they are omitted from the output.
     11  1.1  rillig 101 d 0.101 e 12extern__Bool B
     12  1.1  rillig 
     13  1.1  rillig # Global variables that are defined, not only declared, are part of a
     14  1.1  rillig # library's interface.
     15  1.1  rillig 106 d 0.106 t 11defined_int I
     16  1.1  rillig 
     17  1.1  rillig # Referring to an anonymous tagged type forces the source file to be listed as
     18  1.1  rillig # part of the library.  If it weren't listed, the diagnostics from lint2 were
     19  1.1  rillig # not able to refer to the location where this type has been defined.
     20  1.1  rillig 97 d 0.97 e 21extern_anonymous_enum eT395.0.0
     21  1.1  rillig 
     22  1.1  rillig # Function declarations, as opposed to function definitions, are not part of a
     23  1.1  rillig # library's interface, therefore they are omitted from the output.
     24  1.1  rillig 121 d 0.121 e 30return_void_unknown_parameters F V
     25  1.1  rillig 122 d 0.122 e 38return_implicit_int_unknown_parameters F I
     26  1.1  rillig 125 d 0.125 e 32extern_return_void_no_parameters F 0 V
     27  1.1  rillig 
     28  1.1  rillig # Function calls are not part of a library's interface, therefore they are
     29  1.1  rillig # omitted from the output.
     30  1.1  rillig 161 c 0.161 s2 "%" i 9my_printf f2 PcC PC V
     31  1.1  rillig 
     32  1.1  rillig # Function definitions are copied to the output.
     33  1.1  rillig 159 d 0.159 d 14cover_outqchar F0 V
     34  1.1  rillig 
     35  1.1  rillig # Taken from ../lint1/expr_promote.exp-ln.
     36  1.1  rillig 0s expr_promote.c
     37  1.1  rillig S expr_promote.c
     38  1.1  rillig 
     39  1.1  rillig 10 d 0.10 e 4sink F2 PcC E V
     40  1.1  rillig 58 c 0.58 i 4sink f20 PcC B I I I I I I uI L uL Q uQ D D lD sX X lX eT331.0.0 V
     41  1.1  rillig 37 d 0.37 d 6caller F1 PsT116arithmetic_types V
     42