File tree Expand file tree Collapse file tree 6 files changed +9
-8
lines changed
validation-test/Serialization Expand file tree Collapse file tree 6 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 1
1
// REQUIRES: objc_interop
2
2
// RUN: %empty-directory(%t)
3
3
// 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
5
5
// RUN: llvm-bcanalyzer -dump %t/App.swiftmodule | %FileCheck %s
6
6
// CHECK: IMPORTED_HEADER{{.*}}Inputs/app-bridging-header-to-pch.h
7
7
Original file line number Diff line number Diff line change 1
1
// REQUIRES: objc_interop
2
2
// RUN: %empty-directory(%t)
3
3
// 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
5
5
// RUN: llvm-bcanalyzer -dump %t/App.swiftmodule | %FileCheck %s
6
6
// CHECK: IMPORTED_HEADER{{.*}}Inputs/app-bridging-header-to-pch.h
7
7
Original file line number Diff line number Diff line change 1
1
// 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
3
3
// RUN: llvm-bcanalyzer -dump %t/App.swiftmodule | %FileCheck %s
4
4
5
5
// CHECK: IMPORTED_HEADER{{.*}}Inputs/pch-bridging-header-with-another-bridging-header/app.h
18
18
19
19
import App
20
20
21
- _ = app_function ( 2 )
21
+ _ = app_function ( 2 )
Original file line number Diff line number Diff line change 4
4
// RUN: %empty-directory(%t)
5
5
6
6
// 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
8
8
// RUN: %lldb-moduleimport-test -verbose %t/ASTSection-with-ObjC | %FileCheck %s
9
9
10
10
// RUN: rm %t/serialized-objc-header.h
Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
2
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
4
4
// RUN: llvm-bcanalyzer -dump %t/main.swiftmodule | %FileCheck -check-prefix CHECK-DUMP %s
5
5
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
7
7
// RUN: llvm-bcanalyzer -dump %t/main.swiftmodule | %FileCheck -check-prefix CHECK-DUMP %s
8
8
9
9
// REQUIRES: objc_interop
Original file line number Diff line number Diff line change 1
1
// 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
3
4
// RUN: %target-swift-ide-test -print-module -module-to-print=Library -source-filename=x -I %S/Inputs/ -I %t | %FileCheck %s
4
5
5
6
// REQUIRES: objc_interop
You can’t perform that action at this time.
0 commit comments