summaryrefslogtreecommitdiff
path: root/test/FileCheck
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2013-10-31 18:18:09 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2013-10-31 18:18:09 +0000
commit67b52144d2959067e5d422163b6d0ebe3cbb7164 (patch)
treeb455826f2d3e7c9a78e9644a10f6a8e4e290c572 /test/FileCheck
parent4999ae9cfaeaf6ec38e9735ea29f6f95bcbe94ec (diff)
downloadllvm-67b52144d2959067e5d422163b6d0ebe3cbb7164.tar.gz
llvm-67b52144d2959067e5d422163b6d0ebe3cbb7164.tar.bz2
llvm-67b52144d2959067e5d422163b6d0ebe3cbb7164.tar.xz
Add FileCheck tests for @LINE
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193782 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/FileCheck')
-rw-r--r--test/FileCheck/line-count-2.txt11
-rw-r--r--test/FileCheck/line-count.txt15
2 files changed, 26 insertions, 0 deletions
diff --git a/test/FileCheck/line-count-2.txt b/test/FileCheck/line-count-2.txt
new file mode 100644
index 0000000000..a56ab6dcaf
--- /dev/null
+++ b/test/FileCheck/line-count-2.txt
@@ -0,0 +1,11 @@
+// RUN: FileCheck -input-file %s %s
+
+something else
+CHECK: {{some}}thing else
+
+foobar
+
+CHECK: {{foo}}bar
+ALMOSTCHECK
+10 wowomg
+CHECK: [[@LINE-1]] {{wow}}omg
diff --git a/test/FileCheck/line-count.txt b/test/FileCheck/line-count.txt
new file mode 100644
index 0000000000..6f91c2050b
--- /dev/null
+++ b/test/FileCheck/line-count.txt
@@ -0,0 +1,15 @@
+; RUN: FileCheck -input-file %s %s
+2
+3 aaa
+4 bbb
+5 ccc
+6 CHECK: [[@LINE-3]] {{a}}aa
+7 CHECK: [[@LINE-3]] {{b}}bb
+8 CHECK: [[@LINE-3]] {{c}}cc
+9 foobar
+10 CHECK: [[@LINE-1]] {{foo}}bar
+11
+12 arst CHECK: [[@LINE]] {{a}}rst
+13
+14
+