: io
:
: Tests that require IO support.
:
if $kconfig.kconfig_hello.io
{{
  : basics
  :
  if $kconfig.kconfig_hello.fancy
  {
    g = $kconfig.kconfig_hello.greeting_text
    if $kconfig.kconfig_hello.greeting_builtin
      g += ','
  }
  else
  {
    g = 'Hello,'
  };
  p = $kconfig.kconfig_hello.punct;
  $* 'World' >"$g World$p"

  : missing-name
  :
  if! $kconfig.kconfig_hello.name_fallback
  {
    $* 2>>EOE != 0
    error: missing name
    EOE
  }
}}
