diff options
Diffstat (limited to 'test/FileCheck/var-scope.txt')
-rw-r--r-- | test/FileCheck/var-scope.txt | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/test/FileCheck/var-scope.txt b/test/FileCheck/var-scope.txt new file mode 100644 index 00000000000..c95395c521b --- /dev/null +++ b/test/FileCheck/var-scope.txt @@ -0,0 +1,26 @@ +// RUN: FileCheck -input-file %s %s +// RUN: FileCheck -check-prefixes CHECK,GLOBAL -input-file %s %s +// RUN: FileCheck -check-prefixes CHECK,LOCAL,LOCAL3 -input-file %s %s +// RUN: FileCheck -check-prefixes CHECK,GLOBAL --enable-var-scope -input-file %s %s +// RUN: not FileCheck -check-prefixes CHECK,LOCAL,LOCAL1 --enable-var-scope -input-file %s %s +// RUN: not FileCheck -check-prefixes CHECK,LOCAL,LOCAL2 --enable-var-scope -input-file %s %s + +local1 +global1 +; CHECK: [[LOCAL:loc[^[:digit:]]*]][[#LOCNUM:]] +; CHECK: [[$GLOBAL:glo[^[:digit:]]*]][[#GLOBNUM:]] + +local2 +global2 +; CHECK: [[LOCAL]][[#LOCNUM+1]] +; CHECK: [[$GLOBAL]][[#GLOBNUM+1]] + +barrier: +; CHECK-LABEL: barrier + +local3 +global3 +; LOCAL1: [[LOCAL]]3 +; LOCAL2: local[[#LOCNUM+2]] +; LOCAL2: [[LOCAL]][[#LOCNUM+2]] +; GLOBAL: [[$GLOBAL]][[#GLOBNUM+2]] |