[BACK]Return to psym_if_expr.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / tests / usr.bin / indent

Annotation of src/tests/usr.bin/indent/psym_if_expr.c, Revision 1.3

1.3     ! rillig      1: /* $NetBSD: psym_if_expr.c,v 1.2 2022/04/22 21:21:20 rillig Exp $ */
1.1       rillig      2:
                      3: /*
                      4:  * Tests for the parser symbol psym_if_expr, representing the parser state
                      5:  * after reading the keyword 'if' and the controlling expression, now waiting
                      6:  * for the statement of the 'then' branch.
                      7:  */
                      8:
                      9: #indent input
1.3     ! rillig     10: void function(void) {
        !            11:        if(cond) stmt();
        !            12: }
1.1       rillig     13: #indent end
                     14:
1.3     ! rillig     15: #indent run
        !            16: void
        !            17: function(void)
        !            18: {
        !            19:        if (cond)
        !            20:                stmt();
        !            21: }
        !            22: #indent end

CVSweb <webmaster@jp.NetBSD.org>