tools/flow: add test case for issue 2559
The added CUE takes 7s to test with tools/flow or run with `cue cmd`,
as it's adapted from https://github.com/MarcWort/example-cue
to show the worst case scenario of tools/flow being slow by nesting
many references to non-task nodes which do some underlying work.
Thanks to Marc W for providing the original reproducer on GitHub.
For #2559.
Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: I25543e7c22b1dda6a8a8528198d2d7b4a63bb411
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1198565
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Reviewed-by: Roger Peppe <rogpeppe@gmail.com>