@@ -12,6 +12,9 @@ class HashClass {}
1212//--- file$with$dollar.td
1313class DollarClass {}
1414
15+ //--- file\with\escape.td
16+ class EscapeClass {}
17+
1518//--- file with escape\ before spaces.td
1619class EscapeBeforeSpacesClass {}
1720
@@ -20,12 +23,15 @@ include "normal-file.td"
2023include "file with spaces.td"
2124include "file#with#hash.td"
2225include "file$with$dollar.td"
23- include "file with escape\\ before spaces.td" // backslash itself needs escaping
26+ // backslash itself needs escaping
27+ include "file\\with\\escape.td"
28+ include "file with escape\\ before spaces.td"
2429
2530def Normal : NormalClass;
2631def Spaces : SpaceClass;
2732def Hash : HashClass;
2833def Dollar : DollarClass;
34+ def Escape : EscapeClass;
2935def EscapeBeforeSpaces : EscapeBeforeSpacesClass;
3036
3137// RUN: llvm-tblgen -I %t -d %t.d -o %t.out %t/main.td
@@ -35,4 +41,5 @@ def EscapeBeforeSpaces : EscapeBeforeSpacesClass;
3541// CHECK-DAG: file\ with\ spaces.td
3642// CHECK-DAG: file\#with\#hash.td
3743// CHECK-DAG: file$$with$$dollar.td
44+ // CHECK-DAG: file\with\escape.td
3845// CHECK-DAG: file\ with\ escape\\\ before\ spaces.td
0 commit comments