mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
9ae008d11e
If `--enable-var-scope` is in effect, variables with names that start with `$` are considered to be global. All other variables are local. All local variables get undefined at the beginning of each CHECK-LABEL block. Global variables are not affected by CHECK-LABEL. This makes it easier to ensure that individual tests are not affected by variables set in preceding tests. Differential Revision: https://reviews.llvm.org/D30749 llvm-svn: 297396
16 lines
317 B
Plaintext
16 lines
317 B
Plaintext
; RUN: FileCheck -input-file %s %s
|
|
; 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]]
|