#include <perms.h>

                                                                //      1  %begin
#line 1 "regression-compile-tmp/badsignal.imp"
int main(int argc, char **argv) {
  _imp_initialise(argc, argv);
                                                                //      2    %integerfn sigval
#line 2 "regression-compile-tmp/badsignal.imp"
int SIGVAL( void )
#line 2 "regression-compile-tmp/badsignal.imp"
{
                                                                //      3      %result = 8
#line 3 "regression-compile-tmp/badsignal.imp"
/* Remove %on %event handler here if present for this block */
return 8;
                                                                //      4    %end
#line 4 "regression-compile-tmp/badsignal.imp"
} // End of block SIGVAL at level 2
                                                                //      5    
                                                                //      6    %routine report(%integer a, b, c)
#line 6 "regression-compile-tmp/badsignal.imp"
void REPORT( int A, int B, int C )
#line 6 "regression-compile-tmp/badsignal.imp"
{
                                                                //      7    %end
#line 7 "regression-compile-tmp/badsignal.imp"
/* Remove %on %event handler here if present for this block */
return;
} // End of block REPORT at level 2
                                                                //      8    
                                                                //      9    %constinteger internerr = 23, fail = 7
                                                                //     10    %integer item = 43
#line 10 "regression-compile-tmp/badsignal.imp"
int ITEM;
#line 10 "regression-compile-tmp/badsignal.imp"
ITEM = 43;
                                                                //     11    
                                                                //     12    report(internerr,0,6) %and %signal fail %if item <= 0
#line 12 "regression-compile-tmp/badsignal.imp"
if (((ITEM) > (0))) goto L_0002;
#line 12 "regression-compile-tmp/badsignal.imp"
REPORT(23, 0, 6);
#line 12 "regression-compile-tmp/badsignal.imp"
_imp_signal(7, 0, 0, "");
#line 12 "regression-compile-tmp/badsignal.imp"
L_0002:;
                                                                //     13  
                                                                //     14    %signal 9, sigval
#line 14 "regression-compile-tmp/badsignal.imp"
_imp_signal(9, SIGVAL(), 0, "");
                                                                //     15    
                                                                //     16  %endofprogram
#line 16 "regression-compile-tmp/badsignal.imp"
/* Remove %on %event handler here if present for this block */
return 0;
} // End of block _imp_main at level 1
#line 16 "regression-compile-tmp/badsignal.imp"
// End of file
