Skip to content

Commit edec47b

Browse files
committed
[TableGen] update test for escape dependency filenames
1 parent 7718c55 commit edec47b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

llvm/test/TableGen/escape-dependency-filenames.td

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ class HashClass {}
1212
//--- file$with$dollar.td
1313
class DollarClass {}
1414

15+
//--- file\with\escape.td
16+
class EscapeClass {}
17+
1518
//--- file with escape\ before spaces.td
1619
class EscapeBeforeSpacesClass {}
1720

@@ -20,12 +23,15 @@ include "normal-file.td"
2023
include "file with spaces.td"
2124
include "file#with#hash.td"
2225
include "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

2530
def Normal : NormalClass;
2631
def Spaces : SpaceClass;
2732
def Hash : HashClass;
2833
def Dollar : DollarClass;
34+
def Escape : EscapeClass;
2935
def 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

Comments
 (0)