|
1 | 1 | // RUN: %empty-directory(%t)
|
2 | 2 | // RUN: split-file %s %t
|
3 | 3 |
|
4 |
| -// RUN: %target-swift-emit-ir %t/test.swift -I %t/Inputs -enable-experimental-cxx-interop | %FileCheck %s |
5 |
| -// RUN: %target-swift-emit-ir %t/test.swift -I %t/Inputs -enable-experimental-cxx-interop -g | %FileCheck --check-prefix=DEBUG %s |
| 4 | +// RUN: %target-swift-emit-ir -target %target-future-triple -min-runtime-version 5.11 %t/test.swift -I %t/Inputs -enable-experimental-cxx-interop | %FileCheck %s |
| 5 | +// RUN: %target-swift-emit-ir -target %target-future-triple -min-runtime-version 5.11 %t/test.swift -I %t/Inputs -enable-experimental-cxx-interop -g | %FileCheck --check-prefix=DEBUG %s |
| 6 | +// RUN: %target-swift-emit-ir -target %target-triple -min-runtime-version 5.9 %t/test.swift -I %t/Inputs -enable-experimental-cxx-interop | %FileCheck --check-prefix=GXX %s |
| 7 | +// RUN: %target-swift-emit-ir -target %target-triple -min-runtime-version 5.9 %t/test.swift -I %t/Inputs -enable-experimental-cxx-interop -g | %FileCheck --check-prefix=GXX %s |
6 | 8 |
|
7 | 9 | // UNSUPPORTED: OS=windows-msvc
|
8 | 10 |
|
@@ -335,7 +337,7 @@ public func test() {
|
335 | 337 | // CHECK-NEXT: unreachable
|
336 | 338 | // CHECK-NEXT: }
|
337 | 339 |
|
338 |
| -// CHECK: i32 @_swift_exceptionPersonality(...) |
| 340 | +// CHECK: i32 @_swift_exceptionPersonality(i32, i32, i64, ptr, ptr) |
339 | 341 |
|
340 | 342 | // CHECK: define {{.*}} @"$s4test0A11MethodCallss5Int32VyF"() #[[#SWIFTUWMETA]] personality
|
341 | 343 | // CHECK: call swiftcc i32 @"$s4test8makeCInts5Int32VyF"()
|
@@ -502,3 +504,6 @@ public func test() {
|
502 | 504 | // DEBUG: ![[#DEBUGLOC_TRAP1]] = !DILocation(line: 0, scope: ![[#TRAPSCOPE:]], inlinedAt: ![[#DEBUGLOC_FREEFUNCTIONTHROWS1]])
|
503 | 505 | // DEBUG: ![[#TRAPSCOPE]] = distinct !DISubprogram(name: "Swift runtime failure: unhandled C++{{ / Objective-C | }}exception"
|
504 | 506 | // DEBUG: ![[#DEBUGLOC_TRAP2]] = !DILocation(line: 0, scope: ![[#TRAPSCOPE]], inlinedAt: ![[#DEBUGLOC_FREEFUNCTIONTHROWS2]])
|
| 507 | + |
| 508 | +// GXX: __gxx_personality_v0 |
| 509 | +// GXX-NOT: _swift_exceptionPersonality |
0 commit comments