44// RUN: %target-swift-frontend -scan-dependencies -module-name Test -O \
55// RUN: -disable-implicit-string-processing-module-import -disable-implicit-concurrency-module-import \
66// RUN: -blocklist-file %t/blocklist.yml -blocklist-file %t/empty.yml \
7+ // RUN: -scanner-prefix-map %t=/^tmp -I %t/include \
78// RUN: %t/main.swift -o %t/deps.json -cache-compile-job -cas-path %t/cas
89
910// RUN: %{python} %S/Inputs/BuildCommandExtractor.py %t/deps.json clang:SwiftShims > %t/shim.cmd
1011// RUN: %swift_frontend_plain @%t/shim.cmd
12+ // RUN: %{python} %S/Inputs/BuildCommandExtractor.py %t/deps.json A > %t/A.cmd
13+ // RUN: %swift_frontend_plain @%t/A.cmd
14+
15+ // RUN: %FileCheck %s -check-prefix CMD -input-file=%t/A.cmd
16+ // CMD: -blocklist-file
17+ // CMD-NEXT: /^tmp/blocklist.yml
18+ // CMD-NEXT: -blocklist-file
19+ // CMD-NEXT: /^tmp/empty.yml
1120
1221// RUN: %{python} %S/Inputs/SwiftDepsExtractor.py %t/deps.json Test casFSRootID > %t/fs.casid
1322// DISABLE: llvm-cas --cas %t/cas --ls-tree-recursive @%t/fs.casid | %FileCheck %s -check-prefix FS
2534// RUN: -swift-version 5 -disable-implicit-swift-modules \
2635// RUN: -disable-implicit-string-processing-module-import -disable-implicit-concurrency-module-import \
2736// RUN: -module-name Test -explicit-swift-module-map-file @%t/map.casid \
28- // RUN: -blocklist-file %t/ blocklist.yml -blocklist-file %t /empty.yml \
37+ // RUN: -blocklist-file /^tmp/ blocklist.yml -blocklist-file /^tmp /empty.yml \
2938// RUN: -enable-layout-string-value-witnesses -enable-layout-string-value-witnesses-instantiation \
3039// RUN: -enable-experimental-feature LayoutStringValueWitnesses -enable-experimental-feature LayoutStringValueWitnessesInstantiation \
31- // RUN: %t/main.swift @%t/MyApp.cmd 2>&1 | %FileCheck %s --check-prefix CHECK-BLOCKED
40+ // RUN: -cache-replay-prefix-map /^tmp=%t \
41+ // RUN: /^tmp/main.swift @%t/MyApp.cmd 2>&1 | %FileCheck %s --check-prefix CHECK-BLOCKED
3242
3343// CHECK-BLOCKED: note: Layout string value witnesses have been disabled for module 'Test' through block list entry
3444// CHECK-BLOCKED-NOT: type_layout_string
3545
3646//--- main.swift
47+ import A
3748public struct Bar {
3849 let x : Int
3950 let y : AnyObject
@@ -45,6 +56,11 @@ public enum Foo {
4556 case c
4657}
4758
59+ //--- include/A.swiftinterface
60+ // swift-interface-format-version: 1.0
61+ // swift-module-flags: -module-name A -O -disable-implicit-string-processing-module-import -disable-implicit-concurrency-module-import -parse-stdlib -user-module-version 1.0
62+ public func a( ) { }
63+
4864//--- blocklist.yml
4965---
5066ShouldUseLayoutStringValueWitnesses:
0 commit comments