diff options
author | Eli Bendersky <eliben@google.com> | 2012-11-29 21:24:44 +0000 |
---|---|---|
committer | Eli Bendersky <eliben@google.com> | 2012-11-29 21:24:44 +0000 |
commit | e8832680f8b7a052bd77751d616d41a20d8bacb1 (patch) | |
tree | da62273879418db47d4802592f5a0ff0084ec210 /test/FileCheck | |
parent | 78532fd6ef87b0256e5fd5c33ccc1ee7e638061d (diff) | |
download | llvm-e8832680f8b7a052bd77751d616d41a20d8bacb1.tar.gz |
Add a FileCheck test that makes sure two different CHECKs won't match the
same string
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168942 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/FileCheck')
-rw-r--r-- | test/FileCheck/two-checks-for-same-match.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/FileCheck/two-checks-for-same-match.txt b/test/FileCheck/two-checks-for-same-match.txt new file mode 100644 index 000000000000..2195aa96c540 --- /dev/null +++ b/test/FileCheck/two-checks-for-same-match.txt @@ -0,0 +1,8 @@ +// Check that two distinct CHECK lines won't match the same string +// RUN: not FileCheck -input-file %s %s + +; CHECK: {{a[0-9]b}} +; CHECK: {{a[0-9]b}} + +a2b + |