Skip to content

Commit b0180c3

Browse files
committed
Add generator requirements to cxx interop tests
The constructors-copy-irgen and constructors-irgen tests check code generated by the X86 and ARM backends and will fail spectacularly if we don't have the backend enabled. Adding the necessary codegenerator requirements to those tests.
1 parent 43873ad commit b0180c3

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

test/Interop/Cxx/class/constructors-copy-irgen.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
// RUN: %swift -module-name Swift -target armv7-none-linux-androideabi -dump-clang-diagnostics -I %S/Inputs -enable-experimental-cxx-interop -emit-ir %s -parse-stdlib -parse-as-library -disable-legacy-type-info | %FileCheck %s -check-prefix=ITANIUM_ARM
55
// RUN: %swift -module-name Swift -target x86_64-unknown-windows-msvc -dump-clang-diagnostics -I %S/Inputs -enable-experimental-cxx-interop -emit-ir %s -parse-stdlib -parse-as-library -disable-legacy-type-info | %FileCheck %s -check-prefix=MICROSOFT_X64
66

7+
// REQUIRES: CODEGENERATOR=X86
8+
// REQUIRES: CODEGENERATOR=ARM
9+
710
import Constructors
811
import TypeClassification
912

test/Interop/Cxx/class/constructors-irgen.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
// RUN: %swift -module-name Swift -target armv7-unknown-linux-androideabi -dump-clang-diagnostics -I %S/Inputs -enable-experimental-cxx-interop -emit-ir %s -parse-stdlib -parse-as-library -disable-legacy-type-info | %FileCheck %s -check-prefix=ITANIUM_ARM
55
// RUN: %swift -module-name Swift -target x86_64-unknown-windows-msvc -dump-clang-diagnostics -I %S/Inputs -enable-experimental-cxx-interop -emit-ir %s -parse-stdlib -parse-as-library -disable-legacy-type-info | %FileCheck %s -check-prefix=MICROSOFT_X64
66

7+
// REQUIRES: CODEGENERATOR=X86
8+
// REQUIRES: CODEGENERATOR=ARM
9+
710
import Constructors
811
import TypeClassification
912

0 commit comments

Comments
 (0)