(command.CommandList
  children: [
    (C {<atf_test_case>} {<basic>})
    (command.ShFunction
      name: basic_head
      body: 
        (BraceGroup
          children: [
            (C {<atf_set>} {(DQ <descr>)} {(DQ <'A basic test of unifdef(1) (PR bin/42628)'>)})
            (C {<atf_set>} {(DQ <require.progs>)} {(DQ <unifdef>)})
          ]
        )
    )
    (command.ShFunction
      name: basic_body
      body: 
        (BraceGroup
          children: [
            (C {<atf_check>} {<-s>} {<ignore>} {<-o>} 
              {<file> <Id.Lit_Colon ':'> 
                (command_sub
                  left_token: <Id.Left_DollarParen '$('>
                  child: (C {<atf_get_srcdir>})
                ) <'/d_basic.out'>
              } {<-x>} 
              {
                (DQ <'unifdef -U__FreeBSD__ '> 
                  (command_sub
                    left_token: <Id.Left_DollarParen '$('>
                    child: (C {<atf_get_srcdir>})
                  ) <'/d_basic.in'>
                )
              }
            )
          ]
        )
    )
    (C {<atf_test_case>} {<lastline>})
    (command.ShFunction
      name: lastline_head
      body: 
        (BraceGroup
          children: [
            (C {<atf_set>} {(DQ <descr>)} {(DQ <'Checks with directive on last line (PR bin/47068)'>)})
          ]
        )
    )
    (command.ShFunction
      name: lastline_body
      body: 
        (BraceGroup
          children: [
            (command.Simple
              words: [{<printf>} {(SQ <'#ifdef foo\\n#endif\\n'>)}]
              redirects: [(redir op:<Id.Redir_Great '>'> loc:(redir_loc.Fd fd:1) arg:{<input>})]
              do_fork: T
            )
            (C {<atf_check>} {<-o>} {<file> <Id.Lit_Colon ':'> <input>} {<unifdef>} {<-Ubar>} {<input>})
            (command.Simple
              words: [{<printf>} {(SQ <'#ifdef foo\\n#endif'>)}]
              redirects: [(redir op:<Id.Redir_Great '>'> loc:(redir_loc.Fd fd:1) arg:{<input>})]
              do_fork: T
            )
            (C {<atf_check>} {<-o>} {<file> <Id.Lit_Colon ':'> <input>} {<unifdef>} {<-Ubar>} {<input>})
          ]
        )
    )
    (command.ShFunction
      name: atf_init_test_cases
      body: 
        (BraceGroup
          children: [(C {<atf_add_test_case>} {<basic>}) (C {<atf_add_test_case>} {<lastline>})]
        )
    )
  ]
)