summaryrefslogtreecommitdiffstats
path: root/test/FileCheck
diff options
context:
space:
mode:
authorStephen Lin <stephenwlin@gmail.com>2013-10-11 18:38:36 +0000
committerStephen Lin <stephenwlin@gmail.com>2013-10-11 18:38:36 +0000
commite5f740cc4f994c0db13a66de699bf95ccf24130e (patch)
tree32d5d86abb26101ae47bac380f43cea0595e9904 /test/FileCheck
parent83f743a4d5b4298893adaada0270ff2d832a50c7 (diff)
downloadexternal_llvm-e5f740cc4f994c0db13a66de699bf95ccf24130e.zip
external_llvm-e5f740cc4f994c0db13a66de699bf95ccf24130e.tar.gz
external_llvm-e5f740cc4f994c0db13a66de699bf95ccf24130e.tar.bz2
Really fix CHECK-LABEL and CHECK-DAG interaction. This actually just restores the initial implementation that was in r186162 but got lost in some subsequent refactoring. More explicit variable names and comments are present now to hopefully prevent repeat regression, as well as another test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192477 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/FileCheck')
-rw-r--r--test/FileCheck/check-label-dag-capture.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/FileCheck/check-label-dag-capture.txt b/test/FileCheck/check-label-dag-capture.txt
new file mode 100644
index 0000000..d8f90f4
--- /dev/null
+++ b/test/FileCheck/check-label-dag-capture.txt
@@ -0,0 +1,11 @@
+; RUN: FileCheck -input-file %s %s
+
+bar
+foo
+foo
+zed
+
+CHECK-LABEL: {{^}}bar
+CHECK: {{^}}[[FOO:foo]]
+CHECK-DAG: {{^}}[[FOO]]
+CHECK-LABEL: {{^}}zed