|
1 |
| -// RUN: %clang_cc1 -triple arm64-apple-ios11 -std=c++17 -fcxx-exceptions -fexceptions -emit-llvm -o - %s | FileCheck %s |
2 |
| -// RUN: %clang_cc1 -triple arm64-apple-ios11 -std=c++17 -fcxx-exceptions -fexceptions -fclang-abi-compat=4.0 -emit-llvm -o - %s | FileCheck %s |
| 1 | +// RUN: %clang_cc1 -triple arm64-apple-ios11 -std=c++11 -fcxx-exceptions -fexceptions -emit-llvm -o - %s | FileCheck %s |
| 2 | +// RUN: %clang_cc1 -triple arm64-apple-ios11 -std=c++11 -fcxx-exceptions -fexceptions -fclang-abi-compat=4.0 -emit-llvm -o - %s | FileCheck %s |
3 | 3 |
|
4 | 4 | // CHECK: %[[STRUCT_SMALL:.*]] = type { i32* }
|
5 | 5 | // CHECK: %[[STRUCT_LARGE:.*]] = type { i32*, [128 x i32] }
|
@@ -43,13 +43,6 @@ struct HasNonTrivial {
|
43 | 43 | NonTrivial m;
|
44 | 44 | };
|
45 | 45 |
|
46 |
| -struct __attribute__((trivial_abi)) CopyMoveDeleted { |
47 |
| - CopyMoveDeleted(int); |
48 |
| - CopyMoveDeleted(const CopyMoveDeleted &) = delete; |
49 |
| - CopyMoveDeleted(CopyMoveDeleted &&) = delete; |
50 |
| - int a; |
51 |
| -}; |
52 |
| - |
53 | 46 | // CHECK: define void @_Z14testParamSmall5Small(i64 %[[A_COERCE:.*]])
|
54 | 47 | // CHECK: %[[A:.*]] = alloca %[[STRUCT_SMALL]], align 8
|
55 | 48 | // CHECK: %[[COERCE_DIVE:.*]] = getelementptr inbounds %[[STRUCT_SMALL]], %[[STRUCT_SMALL]]* %[[A]], i32 0, i32 0
|
@@ -244,11 +237,3 @@ void calleeExceptionLarge(Large, Large);
|
244 | 237 | void testExceptionLarge() {
|
245 | 238 | calleeExceptionLarge(Large(), Large());
|
246 | 239 | }
|
247 |
| - |
248 |
| -// A class with deleted copy and move constructors can still be passed or |
249 |
| -// returned in registers if the class is annotated with trivial_abi. |
250 |
| - |
251 |
| -// CHECK: define i64 @_Z19testCopyMoveDeletedi(i32 % |
252 |
| -CopyMoveDeleted testCopyMoveDeleted(int a) { |
253 |
| - return a; |
254 |
| -} |
0 commit comments