xref: /llvm-project/llvm/utils/lit/tests/Inputs/shtest-define/errors/assignment/braces-with-dot.txt (revision 0b7ae41b23fc05c2ac3afc8566b8a923d7f76c45)
1# In python's re.sub patterns, '.' means any character.  If we permitted that
2# in a substitution name (and escaped it before recording it as a substitution),
3# it would be confusing if someone tried to use the same name in a lit
4# configuration file, where the pattern isn't escaped automatically.
5
6# DEFINE: %{foo.bar} = value
7# RUN: echo %{foo.bar}
8
9#      CHECK: Substitution name '%{foo.bar}' is malformed {{.*}}
10# CHECK-NEXT: in {{DEFINE}}: directive on test line [[#@LINE-4]]
11
12# CHECK: Unresolved: 1 {{\([0-9]*.[0-9]*%\)}}
13