Skip to content

Commit c18da8b

Browse files
committed
[nfc][tests] Update most IRGen tests to use %cxx-all-targets lit substitution.
This patch updates most of the Interop/Cxx IRGen tests to use the %cxx-all-targets lit substituion which will run these tests on several targets. This commit only changes tests which didn't require further modification to pass, there are still 11 tests which could use this subsitution but would require some sort of change.
1 parent 957d8cc commit c18da8b

28 files changed

+26
-25
lines changed

Swift.swiftdoc

-400 Bytes
Binary file not shown.

Swift.swiftmodule

-64.8 KB
Binary file not shown.

Swift.swiftsourceinfo

-18.9 KB
Binary file not shown.

test/Interop/Cxx/class/debug-info-irgen.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swiftxx-frontend -I %S/Inputs %s -emit-ir -g | %FileCheck %s
1+
// RUN: %cxx-all-targets(-I %S/Inputs %s -emit-ir -g | %FileCheck %s)
22

33
// Validate that we don't crash when trying to deserialize C++ type debug info.
44
// Note, however, that the actual debug info is not generated, see SR-13223.

test/Interop/Cxx/class/destructors-correct-abi-irgen.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %swift -I %S/Inputs -enable-cxx-interop -emit-ir %s | %FileCheck %s
1+
// RUN: %cxx-all-targets(-I %S/Inputs %s -emit-ir | %FileCheck %s)
22

33
import Destructors
44

test/Interop/Cxx/class/destructors-non-trivial-implicit-irgen.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -enable-cxx-interop -I %S/Inputs %s -emit-ir | %FileCheck %s
1+
// RUN: %cxx-all-targets(-I %S/Inputs %s -emit-ir | %FileCheck %s)
22

33
import Destructors
44

test/Interop/Cxx/class/inline-function-codegen/constructor-calls-function-from-nested-struct-irgen.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-emit-ir %s -I %S/Inputs -enable-cxx-interop | %FileCheck %s
1+
// RUN: %cxx-all-targets(-I %S/Inputs %s -emit-ir | %FileCheck %s)
22

33
import ConstructorCallsFunctionFromNestedStruct
44

test/Interop/Cxx/class/inline-function-codegen/constructor-calls-function-irgen.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-emit-ir %s -I %S/Inputs -enable-cxx-interop | %FileCheck %s
1+
// RUN: %cxx-all-targets(-I %S/Inputs %s -emit-ir | %FileCheck %s)
22

33
import ConstructorCallsFunction
44

test/Interop/Cxx/class/inline-function-codegen/constructor-calls-method-irgen.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-emit-ir %s -I %S/Inputs -enable-cxx-interop | %FileCheck %s
1+
// RUN: %cxx-all-targets(-I %S/Inputs %s -emit-ir | %FileCheck %s)
22

33
import ConstructorCallsMethod
44

test/Interop/Cxx/class/inline-function-codegen/field-init-calls-function-irgen.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-emit-ir %s -I %S/Inputs -enable-cxx-interop | %FileCheck %s
1+
// RUN: %cxx-all-targets(-I %S/Inputs %s -emit-ir | %FileCheck %s)
22

33
import FieldInitCallsFunction
44

0 commit comments

Comments
 (0)