# Check that outputs to not yet existing directories works fine

# We run the build in a sandbox in the temp directory to ensure we don't
# interact with the source dirs.

# This test currently fails even though this works fine with
# upstream Ninja, see SR-9735

# XFAIL: *
# RUN: rm -rf %t.build
# RUN: mkdir -p %t.build
# RUN: cp %s %t.build/build.ninja
# RUN: touch %t.build/input
# RUN: %{llbuild} ninja build --jobs 1 --no-db --chdir %t.build &> %t.out
# RUN: %{FileCheck} < %t.out %s

rule CAT
     command = cat ${in} > ${out}

build subdir/output: CAT input
