summaryrefslogtreecommitdiffstats
path: root/test/tools/llvm-lit
diff options
context:
space:
mode:
Diffstat (limited to 'test/tools/llvm-lit')
-rw-r--r--test/tools/llvm-lit/chain.c9
-rw-r--r--test/tools/llvm-lit/lit.local.cfg1
2 files changed, 10 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: *
diff --git a/test/tools/llvm-lit/lit.local.cfg b/test/tools/llvm-lit/lit.local.cfg
new file mode 100644
index 0000000..856a549
--- /dev/null
+++ b/test/tools/llvm-lit/lit.local.cfg
@@ -0,0 +1 @@
+config.suffixes = ['.c']
OpenPOWER on IntegriCloud