summaryrefslogtreecommitdiffstats
path: root/llvm/test/FileCheck/regex-scope.txt
blob: e77f3f6513a87c38346252ce744fd2afa3a1aca8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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
OpenPOWER on IntegriCloud