Skip to content

Commit d740824

Browse files
committed
Allow space after json key name. JSONEncoder has this (used by swift-driver)
1 parent 4bc72ae commit d740824

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

test/Driver/multi-threaded.swift

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@
4848
// BITCODE-DAG: -frontend -c -primary-file {{.*[/\\]}}multi-threaded.bc {{.*}} -o {{[^ ]*}}multi-threaded.o
4949
// BITCODE-NOT: {{ld|clang}}
5050

51-
// PARSEABLE: "outputs": [
52-
// PARSEABLE: "path": "main.o"
53-
// PARSEABLE: "path": "multi-threaded.o"
51+
// PARSEABLE: "outputs"{{ ?}}: [
52+
// PARSEABLE: "path"{{ ?}}: "main.o"
53+
// PARSEABLE: "path"{{ ?}}: "multi-threaded.o"
5454

5555
// EXEC: -frontend
5656
// EXEC-DAG: -num-threads 4
@@ -62,31 +62,31 @@
6262
// DEPENDENCIES-DAG: {{.*}}multi-threaded.o : {{.*[/\\]}}multi-threaded.swift {{.*[/\\]}}Inputs{{[/\\]}}main.swift
6363
// DEPENDENCIES-DAG: {{.*}}main.o : {{.*[/\\]}}multi-threaded.swift {{.*[/\\]}}Inputs{{[/\\]}}main.swift
6464

65-
// PARSEABLE2: "name": "compile"
66-
// PARSEABLE2: "outputs": [
67-
// PARSEABLE2: "path": "{{.*[/\\]}}main.bc"
68-
// PARSEABLE2: "path": "{{.*[/\\]}}multi-threaded.bc"
69-
// PARSEABLE2: "name": "backend"
70-
// PARSEABLE2: "inputs": [
65+
// PARSEABLE2: "name"{{ ?}}: "compile"
66+
// PARSEABLE2: "outputs"{{ ?}}: [
67+
// PARSEABLE2: "path"{{ ?}}: "{{.*[/\\]}}main.bc"
68+
// PARSEABLE2: "path"{{ ?}}: "{{.*[/\\]}}multi-threaded.bc"
69+
// PARSEABLE2: "name"{{ ?}}: "backend"
70+
// PARSEABLE2: "inputs"{{ ?}}: [
7171
// PARSEABLE2: "{{.*[/\\]}}main.bc"
72-
// PARSEABLE2: "outputs": [
73-
// PARSEABLE2: "path": "{{.*[/\\]}}main.o"
74-
// PARSEABLE2: "name": "backend"
75-
// PARSEABLE2: "inputs": [
72+
// PARSEABLE2: "outputs"{{ ?}}: [
73+
// PARSEABLE2: "path"{{ ?}}: "{{.*[/\\]}}main.o"
74+
// PARSEABLE2: "name"{{ ?}}: "backend"
75+
// PARSEABLE2: "inputs"{{ ?}}: [
7676
// PARSEABLE2: "{{.*[/\\]}}multi-threaded.bc"
77-
// PARSEABLE2: "outputs": [
78-
// PARSEABLE2: "path": "{{.*[/\\]}}multi-threaded.o"
77+
// PARSEABLE2: "outputs"{{ ?}}: [
78+
// PARSEABLE2: "path"{{ ?}}: "{{.*[/\\]}}multi-threaded.o"
7979

80-
// PARSEABLE3: "name": "compile"
81-
// PARSEABLE3: "outputs": [
82-
// PARSEABLE3: "path": "{{.*}}main.o"
83-
// PARSEABLE3: "path": "{{.*}}multi-threaded.o"
84-
// PARSEABLE3: "name": "link"
85-
// PARSEABLE3: "inputs": [
80+
// PARSEABLE3: "name"{{ ?}}: "compile"
81+
// PARSEABLE3: "outputs"{{ ?}}: [
82+
// PARSEABLE3: "path"{{ ?}}: "{{.*}}main.o"
83+
// PARSEABLE3: "path"{{ ?}}: "{{.*}}multi-threaded.o"
84+
// PARSEABLE3: "name"{{ ?}}: "link"
85+
// PARSEABLE3: "inputs"{{ ?}}: [
8686
// PARSEABLE3-NEXT: "{{.*}}main.o"
8787
// PARSEABLE3-NEXT: "{{.*}}multi-threaded.o"
88-
// PARSEABLE3: "outputs": [
89-
// PARSEABLE3: "path": "a.out"
88+
// PARSEABLE3: "outputs"{{ ?}}: [
89+
// PARSEABLE3: "path"{{ ?}}: "a.out"
9090

9191
func libraryFunction() {}
9292

0 commit comments

Comments
 (0)