diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-04-16 16:01:22 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-04-16 16:01:22 +0000 |
commit | 71d5a2540a98c81f5bcaeb48805e0e2881f530ef (patch) | |
tree | 5343938942df402b49ec7300a1c25a2d4ccd5821 /test/FileCheck | |
parent | 31bbf64f3a4974a2d6c8b3b27ad2f519caf74057 (diff) |
Diffstat (limited to 'test/FileCheck')
-rw-r--r-- | test/FileCheck/line-count.txt | 26 | ||||
-rw-r--r-- | test/FileCheck/regex-scope.txt | 23 |
2 files changed, 36 insertions, 13 deletions
diff --git a/test/FileCheck/line-count.txt b/test/FileCheck/line-count.txt index 6f91c2050bf8..d39663e2dbad 100644 --- a/test/FileCheck/line-count.txt +++ b/test/FileCheck/line-count.txt @@ -1,15 +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 +; RUN: not FileCheck -check-prefix BAD -input-file %s %s +3 +4 aaa +5 bbb +6 ccc +7 CHECK: [[@LINE-3]] {{a}}aa +8 CHECK: [[@LINE-3]] {{b}}bb +9 CHECK: [[@LINE-3]] {{c}}cc +10 foobar +11 CHECK: [[@LINE-1]] {{foo}}bar +12 +13 arst CHECK: [[@LINE]] {{a}}rst 14 - +15 BAD: [[@LINE:cant-have-regex]] diff --git a/test/FileCheck/regex-scope.txt b/test/FileCheck/regex-scope.txt new file mode 100644 index 000000000000..e77f3f6513a8 --- /dev/null +++ b/test/FileCheck/regex-scope.txt @@ -0,0 +1,23 @@ +// RUN: FileCheck -check-prefix CHECK -input-file %s %s +// RUN: FileCheck -check-prefixes CHECK,GLOBAL -input-file %s %s +// RUN: FileCheck -check-prefixes CHECK,LOCAL -input-file %s %s +// RUN: FileCheck -check-prefixes CHECK,GLOBAL --enable-var-scope -input-file %s %s +// RUN: not FileCheck -check-prefixes CHECK,LOCAL --enable-var-scope -input-file %s %s + +local +global +; CHECK: [[LOCAL:loc.*]] +; CHECK: [[$GLOBAL:glo.*]] + +local2 +global2 +; CHECK: [[LOCAL]]2 +; CHECK: [[$GLOBAL]]2 + +barrier: +; CHECK-LABEL: barrier + +local3 +global3 +; LOCAL: [[LOCAL]]3 +; GLOBAL: [[$GLOBAL]]3 |