Skip to content

Commit 8ba6a2c

Browse files
authored
Merge pull request #76640 from hamishknight/driver-parity
[test] Update tests for parity with the new driver
2 parents 9a8f8d0 + 8e0407b commit 8ba6a2c

24 files changed

+43
-87
lines changed

test/ClangImporter/pch-bridging-header-unittest-ok.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// REQUIRES: objc_interop
22
// RUN: %empty-directory(%t)
33
// RUN: mkdir -p %t/tmp
4-
// RUN: %target-swiftc_driver -emit-module -import-objc-header %S/Inputs/app-bridging-header-to-pch.h -module-name App -emit-module-path %t/App.swiftmodule %S/Inputs/app-that-uses-pch-bridging-header.swift
4+
// RUN: %target-swiftc_driver -emit-module -disable-bridging-pch -import-objc-header %S/Inputs/app-bridging-header-to-pch.h -module-name App -emit-module-path %t/App.swiftmodule %S/Inputs/app-that-uses-pch-bridging-header.swift
55
// RUN: llvm-bcanalyzer -dump %t/App.swiftmodule | %FileCheck %s
66
// CHECK: IMPORTED_HEADER{{.*}}Inputs/app-bridging-header-to-pch.h
77

test/ClangImporter/pch-bridging-header-unittest-warn.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// REQUIRES: objc_interop
22
// RUN: %empty-directory(%t)
33
// RUN: mkdir -p %t/tmp
4-
// RUN: %target-swiftc_driver -emit-module -import-objc-header %S/Inputs/app-bridging-header-to-pch.h -module-name App -emit-module-path %t/App.swiftmodule %S/Inputs/app-that-uses-pch-bridging-header.swift
4+
// RUN: %target-swiftc_driver -emit-module -disable-bridging-pch -import-objc-header %S/Inputs/app-bridging-header-to-pch.h -module-name App -emit-module-path %t/App.swiftmodule %S/Inputs/app-that-uses-pch-bridging-header.swift
55
// RUN: llvm-bcanalyzer -dump %t/App.swiftmodule | %FileCheck %s
66
// CHECK: IMPORTED_HEADER{{.*}}Inputs/app-bridging-header-to-pch.h
77

test/ClangImporter/pch-bridging-header-with-another-bridging-header.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: %empty-directory(%t)
2-
// RUN: %target-build-swift -emit-module -import-objc-header %S/Inputs/pch-bridging-header-with-another-bridging-header/app.h -I %S/Inputs/pch-bridging-header-with-another-bridging-header -module-name App -emit-module-path %t/App.swiftmodule %S/../Inputs/empty.swift
2+
// RUN: %target-build-swift -emit-module -disable-bridging-pch -import-objc-header %S/Inputs/pch-bridging-header-with-another-bridging-header/app.h -I %S/Inputs/pch-bridging-header-with-another-bridging-header -module-name App -emit-module-path %t/App.swiftmodule %S/../Inputs/empty.swift
33
// RUN: llvm-bcanalyzer -dump %t/App.swiftmodule | %FileCheck %s
44

55
// CHECK: IMPORTED_HEADER{{.*}}Inputs/pch-bridging-header-with-another-bridging-header/app.h
@@ -18,4 +18,4 @@
1818

1919
import App
2020

21-
_ = app_function(2)
21+
_ = app_function(2)

test/ClangImporter/pch-bridging-header.swift

+4-2
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@
77
// RUN: %target-typecheck-verify-swift -import-objc-header %t/sdk-bridging-header.pch
88

99
// Now test the driver-automated version is inert when disabled
10-
// RUN: env TMPDIR=%t/tmp/ %target-swiftc_driver -typecheck -disable-bridging-pch -save-temps %s -import-objc-header %S/Inputs/sdk-bridging-header.h
10+
// Output path of the PCH differs in the new driver, so force SWIFT_USE_OLD_DRIVER for now.
11+
// RUN: env TMPDIR=%t/tmp/ SWIFT_USE_OLD_DRIVER=1 %target-swiftc_driver -typecheck -disable-bridging-pch -save-temps %s -import-objc-header %S/Inputs/sdk-bridging-header.h
1112
// RUN: not ls %t/tmp/*.pch >/dev/null 2>&1
1213

1314
// Test the driver-automated version works by default
14-
// RUN: env TMPDIR=%t/tmp/ %target-swiftc_driver -typecheck -save-temps %s -import-objc-header %S/Inputs/sdk-bridging-header.h
15+
// Output path of the PCH differs in the new driver, so force SWIFT_USE_OLD_DRIVER for now.
16+
// RUN: env TMPDIR=%t/tmp/ SWIFT_USE_OLD_DRIVER=1 %target-swiftc_driver -typecheck -save-temps %s -import-objc-header %S/Inputs/sdk-bridging-header.h
1517
// RUN: ls %t/tmp/*.pch >/dev/null 2>&1
1618
// RUN: llvm-objdump --raw-clang-ast %t/tmp/*.pch | llvm-bcanalyzer -dump | %FileCheck %s
1719
// CHECK: ORIGINAL_FILE{{.*}}Inputs/sdk-bridging-header.h

test/DebugInfo/ASTSection_ObjC.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// RUN: %empty-directory(%t)
55

66
// RUN: cp %S/Inputs/serialized-objc-header.h %t
7-
// RUN: %target-build-swift -emit-executable %S/ASTSection.swift -g -o %t/ASTSection-with-ObjC -import-objc-header %t/serialized-objc-header.h -DOBJC -module-name ASTSection -emit-module
7+
// RUN: %target-build-swift -disable-bridging-pch -emit-executable %S/ASTSection.swift -g -o %t/ASTSection-with-ObjC -import-objc-header %t/serialized-objc-header.h -DOBJC -module-name ASTSection -emit-module
88
// RUN: %lldb-moduleimport-test -verbose %t/ASTSection-with-ObjC | %FileCheck %s
99

1010
// RUN: rm %t/serialized-objc-header.h

test/DebugInfo/file_compilation_dir.swift

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@
66
// RUN: mkdir -p %t
77
// RUN: cd %t
88
// RUN: cp %s .
9-
// RUN: %target-swiftc_driver -g \
9+
// Output paths differ in the new driver, so force SWIFT_USE_OLD_DRIVER for now.
10+
// RUN: env SWIFT_USE_OLD_DRIVER=1 %target-swiftc_driver -g \
1011
// RUN: -c -file-compilation-dir /path/to \
1112
// RUN: file_compilation_dir.swift -o - -emit-ir | %FileCheck --check-prefix=CHECK-REL %s
12-
// RUN: %target-swiftc_driver -g \
13+
// RUN: env SWIFT_USE_OLD_DRIVER=1 %target-swiftc_driver -g \
1314
// RUN: -c -file-compilation-dir . \
1415
// RUN: file_compilation_dir.swift -o - -emit-ir | %FileCheck --check-prefix=CHECK-REL-CWD %s
1516

test/IDE/local_types.swift

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
// Tests lookup and mangling of local types
22

3+
// Avoid emitting the module separately since that would skip non-inlinable
4+
// function bodies without types, and we want to print the decls in
5+
// `singleDefaultArgument`.
36
// RUN: %empty-directory(%t)
4-
// RUN: %target-swiftc_driver -v -emit-module -module-name LocalTypes -o %t/LocalTypes.swiftmodule %s
7+
// RUN: %target-swiftc_driver -v -no-emit-module-separately -emit-module -module-name LocalTypes -o %t/LocalTypes.swiftmodule %s
58
// RUN: %target-swift-ide-test -print-local-types -I %t -module-to-print LocalTypes -source-filename %s > %t.dump
69
// RUN: %FileCheck %s < %t.dump
710
// RUN: %FileCheck -check-prefix=NEGATIVE %s < %t.dump

test/IDE/merge_local_types.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// RUN: %empty-directory(%t)
44

55
// Create separate modules and merge them together
6-
// RUN: %target-swiftc_driver -v -emit-module -module-name LocalTypesMerged -o %t/LocalTypesMerged.swiftmodule %s %S/local_types.swift
6+
// RUN: %target-swiftc_driver -v -no-emit-module-separately -emit-module -module-name LocalTypesMerged -o %t/LocalTypesMerged.swiftmodule %s %S/local_types.swift
77

88
// RUN: %target-swift-ide-test -print-local-types -I %t -module-to-print LocalTypesMerged -source-filename %s | %FileCheck %s -allow-deprecated-dag-overlap
99

test/Index/Store/driver-index-with-auxiliary-outputs.swift

-35
This file was deleted.

test/Misc/stats_dir_failure_count.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Check that a failed process-tree emits nonzero failure counters
22
// RUN: %empty-directory(%t)
33
// RUN: echo zzz >%t/other.swift
4-
// RUN: not %target-swiftc_driver -continue-building-after-errors -D BROKEN -j 2 -typecheck -stats-output-dir %t %s %t/other.swift
4+
// RUN: not env SWIFT_USE_OLD_DRIVER=1 %target-swiftc_driver -continue-building-after-errors -D BROKEN -j 2 -typecheck -stats-output-dir %t %s %t/other.swift
55
// RUN: %{python} %utils/process-stats-dir.py --set-csv-baseline %t/stats.csv %t
66
// RUN: %FileCheck -input-file %t/stats.csv -check-prefix=FAILURE %s
77
// FAILURE: {{"Driver.NumProcessFailures" 1$}}

test/Misc/stats_dir_plausible_maxrss.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %empty-directory(%t)
22
// RUN: touch %t/main.swift
3-
// RUN: %target-swiftc_driver -o %t/main -module-name main -stats-output-dir %t %t/main.swift
3+
// RUN: env SWIFT_USE_OLD_DRIVER=1 %target-swiftc_driver -o %t/main -module-name main -stats-output-dir %t %t/main.swift
44
// RUN: %{python} %utils/process-stats-dir.py --set-csv-baseline %t/frontend.csv %t
55
// RUN: %FileCheck -input-file %t/frontend.csv %s
66

test/ModuleInterface/convenience-init.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// RUN: %empty-directory(%t)
22

33
// Generate the parseable interface of the current file via the merge-modules step
4-
// RUN: %target-build-swift -emit-module -o %t/Test.swiftmodule -emit-module-interface-path %t/TestMerge.swiftinterface -module-name Test %s
4+
// RUN: %target-build-swift -no-emit-module-separately -emit-module -o %t/Test.swiftmodule -emit-module-interface-path %t/TestMerge.swiftinterface -module-name Test %s
55

66
// Generate the parseable interface of the current file via a single frontend invocation
77
// RUN: %target-swift-frontend -typecheck -enable-objc-interop -emit-module-interface-path %t/TestSingle.swiftinterface -module-name Test %s

test/ModuleInterface/enums-layout.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: %empty-directory(%t)
2-
// RUN: %target-build-swift -emit-module-interface-path %t/Lib.swiftinterface -emit-module -o %t/unused.swiftmodule -enable-library-evolution -Xfrontend -enable-objc-interop -Xfrontend -disable-objc-attr-requires-foundation-module -swift-version 5 %S/Inputs/enums-layout-helper.swift -module-name Lib
2+
// RUN: %target-build-swift -no-emit-module-separately -emit-module-interface-path %t/Lib.swiftinterface -emit-module -o %t/unused.swiftmodule -enable-library-evolution -Xfrontend -enable-objc-interop -Xfrontend -disable-objc-attr-requires-foundation-module -swift-version 5 %S/Inputs/enums-layout-helper.swift -module-name Lib
33
// RUN: %FileCheck -check-prefix CHECK -check-prefix CHECK-MULTI-FILE %S/Inputs/enums-layout-helper.swift < %t/Lib.swiftinterface
44
// RUN: %target-swift-frontend -enable-objc-interop -compile-module-from-interface %t/Lib.swiftinterface -o %t/compiled-from-interface.swiftmodule -module-name Lib
55
// RUN: %target-swift-frontend -enable-objc-interop -O -emit-ir -primary-file %s -I %t -Xllvm -swiftmergefunc-threshold=0 | %FileCheck %s

test/ModuleInterface/print_package_name_in_non_package_interface.swift

+4-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@
5151
// RUN: rm -rf %t/Bar.package.swiftinterface
5252

5353
/// Print -package-name in public or private interface.
54-
// RUN: %target-build-swift -emit-module %t/Bar.swift -I %t \
54+
/// Note the order of arguments differs across old/new driver, so force old
55+
/// driver for now.
56+
// RUN: env SWIFT_USE_OLD_DRIVER=1 %target-build-swift \
57+
// RUN: -emit-module %t/Bar.swift -I %t \
5558
// RUN: -module-name Bar -package-name barpkg \
5659
// RUN: -enable-library-evolution -swift-version 6 \
5760
// RUN: -Xfrontend -print-package-name-in-non-package-interface \

test/SILOptimizer/cmo-with-package-decls.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// RUN: %target-build-swift -O -wmo -Xfrontend -enable-default-cmo -parse-as-library -emit-module -emit-module-path=%t/Module.swiftmodule -module-name=Module -package-name Pkg -I%t -I%S/Inputs/cross-module %S/Inputs/cross-module/default-module.swift -c -o %t/module.o
44
// RUN: %target-build-swift -O -wmo -Xfrontend -enable-default-cmo -parse-as-library -emit-tbd -emit-tbd-path %t/ModuleTBD.tbd -emit-module -emit-module-path=%t/ModuleTBD.swiftmodule -module-name=ModuleTBD -package-name Pkg -I%t -I%S/Inputs/cross-module %S/Inputs/cross-module/default-module.swift -c -o %t/moduletbd.o -Xfrontend -tbd-install_name -Xfrontend module
55

6-
// RUN: %target-build-swift -O -wmo -module-name=Main -package-name Pkg -I%t -I%S/Inputs/cross-module %s -emit-sil -o %t/Main.sil
6+
// RUN: %target-build-swift -Xfrontend -enable-default-cmo -O -wmo -module-name=Main -package-name Pkg -I%t -I%S/Inputs/cross-module %s -emit-sil -o %t/Main.sil
77
// RUN: %FileCheck %s < %t/Main.sil
88

99
// REQUIRES: swift_in_compiler
@@ -12,7 +12,7 @@ import Module
1212
import ModuleTBD
1313

1414
// static ModuleStruct.privateFunctionPointer
15-
// CHECK-LABEL: sil_global public_external @$s6Module0A6StructV22privateFunctionPointeryS2icvpZ : $@callee_guaranteed (Int) -> Int{{$}}
15+
// CHECK-LABEL: sil_global public_external [serialized] @$s6Module0A6StructV22privateFunctionPointeryS2icvpZ : $@callee_guaranteed (Int) -> Int{{$}}
1616

1717
// static ModuleStruct.publicFunctionPointer
1818
// CHECK-LABEL: sil_global public_external [serialized] @$s6Module0A6StructV21publicFunctionPointeryS2icvpZ : $@callee_guaranteed (Int) -> Int

test/SILOptimizer/default-cmo.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
// RUN: %target-build-swift -O -wmo -Xfrontend -enable-default-cmo -parse-as-library -emit-module -emit-module-path=%t/Module.swiftmodule -module-name=Module -package-name Pkg -I%t -I%S/Inputs/cross-module %S/Inputs/cross-module/default-module.swift -c -o %t/module.o
66
// RUN: %target-build-swift -O -wmo -Xfrontend -enable-default-cmo -parse-as-library -emit-tbd -emit-tbd-path %t/ModuleTBD.tbd -emit-module -emit-module-path=%t/ModuleTBD.swiftmodule -module-name=ModuleTBD -package-name Pkg -I%t -I%S/Inputs/cross-module %S/Inputs/cross-module/default-module.swift -c -o %t/moduletbd.o -Xfrontend -tbd-install_name -Xfrontend module
77

8-
// RUN: %target-build-swift -O -wmo -module-name=Main -package-name Pkg -I%t -I%S/Inputs/cross-module %s -emit-sil | %FileCheck %s
8+
// RUN: %target-build-swift -Xfrontend -enable-default-cmo -O -wmo -module-name=Main -package-name Pkg -I%t -I%S/Inputs/cross-module %s -emit-sil | %FileCheck %s
99

1010
// REQUIRES: swift_in_compiler
1111

1212
import Module
1313
import ModuleTBD
1414

15-
// CHECK-LABEL: sil_global public_external @$s6Module0A6StructV22privateFunctionPointeryS2icvpZ : $@callee_guaranteed (Int) -> Int{{$}}
15+
// CHECK-LABEL: sil_global public_external [serialized] @$s6Module0A6StructV22privateFunctionPointeryS2icvpZ : $@callee_guaranteed (Int) -> Int{{$}}
1616

1717
public func callPublicFunctionPointer(_ x: Int) -> Int {
1818
return Module.ModuleStruct.publicFunctionPointer(x)

test/Serialization/search-paths-relative.swift

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
// RUN: %empty-directory(%t/Frameworks/has_alias.framework/Modules/has_alias.swiftmodule)
55
// RUN: %target-swift-frontend -emit-module -o %t/Frameworks/has_alias.framework/Modules/has_alias.swiftmodule/%target-swiftmodule-name %S/Inputs/alias.swift -module-name has_alias
66

7-
// RUN: cd %t/secret && %target-swiftc_driver -emit-module -o %t/has_xref.swiftmodule -I . -F ../Frameworks -parse-as-library %S/Inputs/has_xref.swift %S/../Inputs/empty.swift -Xfrontend -serialize-debugging-options -Xcc -ivfsoverlay -Xcc %S/../Inputs/unextended-module-overlay.yaml -Xcc -DDUMMY
7+
// Output paths differ in the new driver, so force SWIFT_USE_OLD_DRIVER for now.
8+
// RUN: cd %t/secret && env SWIFT_USE_OLD_DRIVER=1 %target-swiftc_driver -emit-module -o %t/has_xref.swiftmodule -I . -F ../Frameworks -parse-as-library %S/Inputs/has_xref.swift %S/../Inputs/empty.swift -Xfrontend -serialize-debugging-options -Xcc -ivfsoverlay -Xcc %S/../Inputs/unextended-module-overlay.yaml -Xcc -DDUMMY
89
// RUN: %target-swift-frontend %s -typecheck -I %t
910

1011
// Ensure that in Swift 6 mode we do not read out search paths, thus are no longer able to

test/SourceKit/InterfaceGen/gen_module_group.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// FIXME: We don't currently handle group info for multi-file builds,
77
// so just make sure we don't crash.
88
// RUN: %empty-directory(%t.multifrontend)
9-
// RUN: %target-build-swift -module-name MyModule -emit-module -emit-module-path %t.multifrontend/MyModule.swiftmodule -Xfrontend -group-info-path -Xfrontend %S/Inputs/group.json %S/Inputs/swift_mod.swift %S/Inputs/swift_mod_syn.swift
9+
// RUN: %target-build-swift -module-name MyModule -emit-module -emit-module-path %t.multifrontend/MyModule.swiftmodule -no-emit-module-separately -Xfrontend -group-info-path -Xfrontend %S/Inputs/group.json %S/Inputs/swift_mod.swift %S/Inputs/swift_mod_syn.swift
1010
// RUN: %sourcekitd-test -req=interface-gen -module MyModule -group-name A -- -I %t.multifrontend -target %target-triple | %FileCheck -check-prefix=EMPTY %s
1111

1212
// GROUPA: MyClass

test/SymbolGraph/Symbols/Mixins/DeclarationFragments/Full/SomeProtocol.swift

+6-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,12 @@
44
// RUN: %FileCheck %s --input-file %t/SomeProtocol.symbols.json
55
// RUN: %FileCheck %s --input-file %t/SomeProtocol.symbols.json --check-prefix MULTI
66

7+
// Note we use '-wmo' here to make sure the driver doesn't do merge-modules,
8+
// which would result in printing the Type instead of TypeRepr, leading to
9+
// inconsistency with the new driver. Once we switch to always using the new
10+
// driver, we can remove it.
711
// RUN: %empty-directory(%t)
8-
// RUN: %target-build-swift %s -module-name SomeProtocol -emit-module -emit-module-path %t/SomeProtocol.swiftmodule -emit-symbol-graph -emit-symbol-graph-dir %t/
12+
// RUN: %target-build-swift %s -module-name SomeProtocol -emit-module -wmo -emit-module-path %t/SomeProtocol.swiftmodule -emit-symbol-graph -emit-symbol-graph-dir %t/
913
// RUN: %validate-json %t/SomeProtocol.symbols.json %t/SomeProtocol.formatted.symbols.json
1014
// RUN: %FileCheck %s --input-file %t/SomeProtocol.formatted.symbols.json
1115
// RUN: %FileCheck %s --input-file %t/SomeProtocol.formatted.symbols.json --check-prefix MULTI
@@ -19,7 +23,7 @@ public func doSomething(with param: some SomeProtocol) {}
1923

2024
public protocol OtherProtocol {}
2125

22-
public func doSomethingElse(with param: some SomeProtocol & OtherProtocol) {}
26+
public func doSomethingElse(with param: some OtherProtocol & SomeProtocol) {}
2327

2428
// CHECK-LABEL: "precise": "s:12SomeProtocol11doSomething4withyx_tA2ARzlF",
2529

test/TBD/output-path-deduction.swift

-13
This file was deleted.

test/attr/open.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: %empty-directory(%t)
2-
// RUN: %target-build-swift -emit-module -c %S/Inputs/OpenHelpers.swift -o %t/OpenHelpers.swiftmodule
2+
// RUN: %target-build-swift -emit-module %S/Inputs/OpenHelpers.swift -o %t/OpenHelpers.swiftmodule
33
// RUN: %target-typecheck-verify-swift -I %t
44

55
import OpenHelpers

validation-test/Serialization/bridging-header-first.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// RUN: %empty-directory(%t)
22

3-
// RUN: %target-build-swift -emit-module -emit-executable %s -g -I %S/Inputs/bridging-header-first/ -import-objc-header %S/Inputs/bridging-header-first/bridging.h -o %t/main
3+
// RUN: %target-build-swift -emit-module -emit-executable %s -g -I %S/Inputs/bridging-header-first/ -disable-bridging-pch -import-objc-header %S/Inputs/bridging-header-first/bridging.h -o %t/main
44
// RUN: llvm-bcanalyzer -dump %t/main.swiftmodule | %FileCheck -check-prefix CHECK-DUMP %s
55

6-
// RUN: %target-build-swift -emit-module -emit-executable %s -g -I %S/Inputs/bridging-header-first/ -import-objc-header %S/Inputs/bridging-header-first/bridging.h -o %t/main -whole-module-optimization
6+
// RUN: %target-build-swift -emit-module -emit-executable %s -g -I %S/Inputs/bridging-header-first/ -disable-bridging-pch -import-objc-header %S/Inputs/bridging-header-first/bridging.h -o %t/main -whole-module-optimization
77
// RUN: llvm-bcanalyzer -dump %t/main.swiftmodule | %FileCheck -check-prefix CHECK-DUMP %s
88

99
// REQUIRES: objc_interop

validation-test/Serialization/rdar29694978.swift

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// RUN: %empty-directory(%t)
2-
// RUN: %target-build-swift %s -import-objc-header %S/Inputs/rdar29694978.h -emit-module -o %t/Library.swiftmodule
2+
// FIXME: Crashes with PCH (https://github.com/swiftlang/swift/issues/76641)
3+
// RUN: %target-build-swift %s -disable-bridging-pch -import-objc-header %S/Inputs/rdar29694978.h -emit-module -o %t/Library.swiftmodule
34
// RUN: %target-swift-ide-test -print-module -module-to-print=Library -source-filename=x -I %S/Inputs/ -I %t | %FileCheck %s
45

56
// REQUIRES: objc_interop

0 commit comments

Comments
 (0)