From 4010156bf946341f42aa82fc0a2669c936d5e106 Mon Sep 17 00:00:00 2001 From: Julian Büning Date: Mon, 30 Oct 2017 18:53:40 +0100 Subject: fix test/Feature/BFSSearcherAndDFSSearcherInterleaved.c to use explicit enumeration of possible strings instead of CHECK-SAME (does not work as intended with LLVM >= 3.7) --- test/Feature/BFSSearcherAndDFSSearcherInterleaved.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/test/Feature/BFSSearcherAndDFSSearcherInterleaved.c b/test/Feature/BFSSearcherAndDFSSearcherInterleaved.c index 9cc11b70..3dd5b4d5 100644 --- a/test/Feature/BFSSearcherAndDFSSearcherInterleaved.c +++ b/test/Feature/BFSSearcherAndDFSSearcherInterleaved.c @@ -38,12 +38,6 @@ int main() { } } - // exactly 4 characters - // CHECK: {{^[A-D]{4}$}} - - // for each of A, B, C and D: occurs exactly once - // CHECK-SAME: {{^[B-D]*A[B-D]*$}} - // CHECK-SAME: {{^[A,C-D]*B[A,C-D]*$}} - // CHECK-SAME: {{^[A-B,D]*C[A-B,D]*$}} - // CHECK-SAME: {{^[A-C]*D[A-C]*$}} + // exactly 4 characters, each of A, B, C and D occur exactly once + // CHECK: {{^(ABCD|ABDC|ACBD|ACDB|ADBC|ADCB|BACD|BADC|BCAD|BCDA|BDAC|BDCA|CABD|CADB|CBAD|CBDA|CDAB|CDBA|DABC|DACB|DBAC|DBCA|DCAB|DCBA)$}} } -- cgit 1.4.1