| 1 |
# In python's re.sub patterns, '%{3}' means three '%%%'. If we permitted that |
| 2 |
# as a substitution name (and escaped it before recording it as a |
| 3 |
# substitution), it would be confusing if someone tried to use the same name in |
| 4 |
# a lit configuration file, where the pattern isn't escaped automatically. |
| 5 |
|
| 6 |
# DEFINE: %{3} = value |
| 7 |
# RUN: echo %{3} |
| 8 |
|
| 9 |
# CHECK: Substitution name '%{3}' is malformed {{.*}} |
| 10 |
# CHECK-NEXT: in {{DEFINE}}: directive on test line [[#@LINE-4]] |
| 11 |
|
| 12 |
# CHECK: Unresolved: 1 {{\([0-9]*.[0-9]*%\)}} |