diff --git a/clang/test/ClangScanDeps/modules-full.cpp b/clang/test/ClangScanDeps/modules-full.cpp index 5c3e53610e5a..b4252c5c4f60 100644 --- a/clang/test/ClangScanDeps/modules-full.cpp +++ b/clang/test/ClangScanDeps/modules-full.cpp @@ -39,8 +39,10 @@ // CHECK-NEXT: "command-line": [ // CHECK-NEXT: "-cc1", // CHECK: "-fmodule-map-file=[[PREFIX]]/Inputs/module.modulemap", +// CHECK: "-emit-module", // CHECK: "-fmodule-file=[[PREFIX]]/module-cache{{(_clangcl)?}}/[[CONTEXT_HASH_H1]]/header2-{{[A-Z0-9]+}}.pcm", // CHECK-NOT: "-fimplicit-module-maps", +// CHECK: "-fmodule-name=header1", // CHECK: "-fno-implicit-modules", // CHECK: ], // CHECK-NEXT: "context-hash": "[[CONTEXT_HASH_H1]]", @@ -55,7 +57,9 @@ // CHECK-NEXT: "clang-modulemap-file": "[[PREFIX]]/Inputs/module.modulemap", // CHECK-NEXT: "command-line": [ // CHECK-NEXT: "-cc1", +// CHECK: "-emit-module", // CHECK-NOT: "-fimplicit-module-maps", +// CHECK: "-fmodule-name=header1", // CHECK: "-fno-implicit-modules", // CHECK: ], // CHECK-NEXT: "context-hash": "[[CONTEXT_HASH_H2:[A-Z0-9]+]]", @@ -70,7 +74,9 @@ // CHECK-NEXT: "clang-modulemap-file": "[[PREFIX]]/Inputs/module.modulemap", // CHECK-NEXT: "command-line": [ // CHECK-NEXT: "-cc1", +// CHECK: "-emit-module", // CHECK-NOT: "-fimplicit-module-maps", +// CHECK: "-fmodule-name=header2", // CHECK: "-fno-implicit-modules", // CHECK: ], // CHECK-NEXT: "context-hash": "[[CONTEXT_HASH_H1]]",