|
1 | 1 | // RUN: %empty-directory(%t) |
2 | | -// RUN: %target-swift-frontend -enable-experimental-feature Embedded -parse-as-library -module-name main %s -emit-ir | %FileCheck --check-prefix=CHECK-IR %s |
| 2 | +// RUN: %target-swift-frontend -disable-embedded-existentials -enable-experimental-feature Embedded -parse-as-library -module-name main %s -emit-ir | %FileCheck --check-prefix=CHECK-IR %s |
| 3 | +// RUN: %target-swift-frontend -disable-embedded-existentials -enable-experimental-feature Embedded -parse-as-library -module-name main %s -c -o %t/a.o |
| 4 | +// RUN: %target-clang %t/a.o -o %t/a.out -L%swift_obj_root/lib/swift/embedded/%module-target-triple %target-clang-resource-dir-opt -lswift_Concurrency %target-swift-default-executor-opt -dead_strip |
| 5 | +// RUN: %target-run %t/a.out | %FileCheck %s |
| 6 | + |
| 7 | +// RUN: %empty-directory(%t) |
| 8 | +// RUN: %target-swift-frontend -enable-experimental-feature Embedded -parse-as-library -module-name main %s -emit-ir | %FileCheck --check-prefix=EXIST-IR %s |
3 | 9 | // RUN: %target-swift-frontend -enable-experimental-feature Embedded -parse-as-library -module-name main %s -c -o %t/a.o |
4 | 10 | // RUN: %target-clang %t/a.o -o %t/a.out -L%swift_obj_root/lib/swift/embedded/%module-target-triple %target-clang-resource-dir-opt -lswift_Concurrency %target-swift-default-executor-opt -dead_strip |
5 | 11 | // RUN: %target-run %t/a.out | %FileCheck %s |
6 | 12 |
|
| 13 | + |
7 | 14 | // REQUIRES: executable_test |
8 | 15 | // REQUIRES: swift_in_compiler |
9 | 16 | // REQUIRES: optimized_stdlib |
@@ -48,3 +55,21 @@ actor MyActor { |
48 | 55 | // CHECK-IR: define weak_odr {{swifttailcc|swiftcc}} void @swift_deletedAsyncMethodError(ptr swiftasync %0) |
49 | 56 |
|
50 | 57 | // CHECK: value: 42 |
| 58 | + |
| 59 | +// EXIST-IR: @swift_deletedAsyncMethodErrorTu = |
| 60 | +// EXIST-IR: @"$e4main7MyActorCMf" = {{.*}} <{ ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }> <{ |
| 61 | +// EXIST-IR-SAME: ptr @"$eBoWV", |
| 62 | +// EXIST-IR-SAME: ptr null, |
| 63 | +// EXIST-IR-SAME: ptr @"$e4main7MyActorCfD", |
| 64 | +// EXIST-IR-SAME: ptr null, |
| 65 | +// EXIST-IR-SAME: ptr @swift_deletedMethodError, |
| 66 | +// EXIST-IR-SAME: ptr @swift_deletedMethodError, |
| 67 | +// EXIST-IR-SAME: ptr @swift_deletedMethodError, |
| 68 | +// EXIST-IR-SAME: ptr @"$e4main7MyActorC3fooyyYaFTu", |
| 69 | +// EXIST-IR-SAME: ptr @got.swift_deletedAsyncMethodErrorTu, |
| 70 | +// EXIST-IR-SAME: ptr @"$e4main7MyActorCACycfC" }> |
| 71 | + |
| 72 | +// EXIST-IR-DAG: @"$e4main7MyActorCN" = {{.*}}alias{{.*}} ptr @"$e4main7MyActorCMf", i32 0, i32 1) |
| 73 | + |
| 74 | + |
| 75 | +// EXIST-IR-NOT: $e4main7MyActorC12thisIsUnusedyyYaF |
0 commit comments