Add FileCheck tests for @LINE

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193782 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Matt Arsenault 2013-10-31 18:18:09 +00:00
parent 4999ae9cfa
commit 67b52144d2
2 changed files with 26 additions and 0 deletions

View File

@ -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

View File

@ -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