mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
The new driver builds a PCH by default, which the old driver didn't do. These tests don't expect a PCH, so avoid building it.
29 lines
1.0 KiB
Swift
29 lines
1.0 KiB
Swift
// RUN: %empty-directory(%t)
|
|
|
|
// 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
|
|
// RUN: llvm-bcanalyzer -dump %t/main.swiftmodule | %FileCheck -check-prefix CHECK-DUMP %s
|
|
|
|
// 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
|
|
// RUN: llvm-bcanalyzer -dump %t/main.swiftmodule | %FileCheck -check-prefix CHECK-DUMP %s
|
|
|
|
// REQUIRES: objc_interop
|
|
|
|
// CHECK-DUMP-LABEL: CONTROL_BLOCK
|
|
// CHECK-DUMP: MODULE_NAME
|
|
// CHECK-DUMP-SAME: 'main'
|
|
|
|
// CHECK-DUMP-LABEL: INPUT_BLOCK
|
|
// CHECK-DUMP: IMPORTED_HEADER
|
|
// CHECK-DUMP-SAME: '{{.+}}/bridging.h'
|
|
// CHECK-DUMP: IMPORTED_MODULE
|
|
// CHECK-DUMP-SAME: 'Module'
|
|
// CHECK-DUMP: IMPORTED_MODULE
|
|
// CHECK-DUMP: 'Swift'
|
|
|
|
|
|
import Module
|
|
class C {}
|
|
extension C: AmbivalentProtocol {
|
|
func f() {}
|
|
}
|