Skip to content

Commit c925237

Browse files
committed
[interop] test, fixup remaining exception tests
1 parent ee60173 commit c925237

File tree

4 files changed

+7
-11
lines changed

4 files changed

+7
-11
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Target-specific tests for C++ copy constructor code generation.
22

3-
// RUN: %swift -module-name MySwift -target x86_64-apple-macosx10.9 -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_X64
3+
// RUN: %swift -module-name MySwift -target x86_64-apple-macosx10.9 -dump-clang-diagnostics -I %S/Inputs -enable-experimental-cxx-interop -emit-ir %s -parse-stdlib -parse-as-library -disable-legacy-type-info -Xcc -fignore-exceptions | %FileCheck %s -check-prefix=ITANIUM_X64
44

55
// REQUIRES: OS=macosx
66
// REQUIRES: CPU=x86_64

test/Interop/Cxx/exceptions/trap-on-exception-irgen-itanium.swift

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ let _ = testClassWithNoThrowingConstructor()
370370
// CHECK: }
371371

372372
// CHECK: define {{.*}} @"$s4test0A32ClassWithThrowingCopyConstructors5Int32VyF"() #[[#SWIFTUWMETA]] personality
373-
// CHECK: invoke {{.*}} @_ZN32ClassWithThrowingCopyConstructorC1ERKS_(
373+
// CHECK: invoke {{.*}} @_ZN32ClassWithThrowingCopyConstructorC{{1|2}}ERKS_(
374374
// CHECK-NEXT: to label %[[CONT41:.*]] unwind label %[[UNWIND41:.*]]
375375

376376
// CHECK: [[UNWIND41]]:
@@ -380,18 +380,14 @@ let _ = testClassWithNoThrowingConstructor()
380380
// CHECK-NEXT: unreachable
381381

382382
// CHECK: define {{.*}} @"$s4test0A28ClassWithThrowingConstructors5Int32VyF"() #[[#SWIFTUWMETA]] personality
383-
// CHECK: invoke {{.*}} @_ZN28ClassWithThrowingConstructorC{{.*}}(
383+
// CHECK: invoke {{.*}} @_ZN28ClassWithThrowingConstructorC{{.*}}(%{{.*}}* %[[#CONSTRUCTORTHIS:]])
384384
// CHECK-NEXT: to label %[[CONT42:.*]] unwind label %[[UNWIND42:.*]]
385-
// CHECK-EMPTY:
386-
// CHECK-NEXT: [[UNWIND42]]:
385+
386+
// CHECK: [[UNWIND42]]:
387387
// CHECK-NEXT: landingpad { i8*, i32 }
388388
// CHECK-NEXT: catch i8* null
389389
// CHECK-NEXT: call void @llvm.trap()
390390
// CHECK-NEXT: unreachable
391-
// CHECK-EMPTY:
392-
// CHECK-NEXT: [[CONT42]]:
393-
// CHECK: ret i32
394-
// CHECK-NEXT: }
395391

396392
// CHECK: define {{.*}} @"$s4test0A30ClassWithNoThrowingConstructors5Int32VyF"() #[[#SWIFTMETA]]
397393
// CHECK-NOT: invoke

test/Interop/Cxx/value-witness-table/copy-constructors-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-experimental-cxx-interop -I %S/Inputs %s -emit-ir | %FileCheck %s
1+
// RUN: %target-swift-frontend -enable-experimental-cxx-interop -I %S/Inputs %s -emit-ir -Xcc -fignore-exceptions | %FileCheck %s
22

33
// REQUIRES: CPU=x86_64
44
// REQUIRES: objc_interop

test/Interop/Cxx/value-witness-table/witness-lifetime-operations-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-experimental-cxx-interop -I %S/Inputs %s -emit-ir | %FileCheck %s
1+
// RUN: %target-swift-frontend -enable-experimental-cxx-interop -I %S/Inputs %s -emit-ir -Xcc -fignore-exceptions | %FileCheck %s
22

33
// Temporarily restrict to x86 (rdar://89908618)
44
// REQUIRES: CPU=x86_64

0 commit comments

Comments
 (0)