llvm/utils/lit/tests/Inputs/shtest-define/value-escaped.txt
raw| 1 | # Escape sequences that can appear in python re.sub replacement strings have no |
| 2 | # special meaning in the value. |
| 3 | |
| 4 | # DEFINE: %{escape} = \g<0>\n |
| 5 | # RUN: echo '%{escape}' |
| 6 | # CHECK:# | \g<0>\n |
| 7 | |
| 8 | # REDEFINE: %{escape} = \n \ |
| 9 | # REDEFINE: \g<param> |
| 10 | # RUN: echo '%{escape}' |
| 11 | # CHECK:# | \n \g<param> |
| 12 | |
| 13 | # RUN: echo '%{global:subst-with-escapes}' |
| 14 | # CHECK:# | value-with-\g |
| 15 | |
| 16 | # CHECK: Passed: 1 {{\([0-9]*.[0-9]*%\)}} |