diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-12-05 22:54:26 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-12-05 22:54:26 +0000 |
commit | 00fb9c429e4400f3daeb87e6fad9498d4c73862a (patch) | |
tree | 1e5aa0caa7806c412f54dbbf4e156f102c091cfd /test/tools/llvm-lit | |
parent | c4c14a7b4a14c30b4fc7b130eb003ea7e4449e41 (diff) | |
download | external_llvm-00fb9c429e4400f3daeb87e6fad9498d4c73862a.zip external_llvm-00fb9c429e4400f3daeb87e6fad9498d4c73862a.tar.gz external_llvm-00fb9c429e4400f3daeb87e6fad9498d4c73862a.tar.bz2 |
PR10867. lit would interpret
RUN: a
RUN: b || true
as "a && (b || true)" in Tcl mode, and as "(a && b) || true" in sh mode.
Everyone seems to (quite reasonably) write tests assuming the Tcl behavior,
so use that in sh mode too.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169441 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/tools/llvm-lit')
-rw-r--r-- | test/tools/llvm-lit/chain.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/tools/llvm-lit/chain.c b/test/tools/llvm-lit/chain.c new file mode 100644 index 0000000..6f6541d --- /dev/null +++ b/test/tools/llvm-lit/chain.c @@ -0,0 +1,9 @@ +// This test should fail. lit used to interpret this as: +// (false && false) || true +// instead of the intended +// false && (false || true +// +// RUN: false +// RUN: false || true +// +// XFAIL: * |