2023-05-26 16:58:48 +02:00
|
|
|
// RUN: %clang_cc1 -triple x86_64-apple-macosx10.13.0 -std=c++1z -fobjc-arc -fobjc-exceptions -fcxx-exceptions -fexceptions -emit-llvm -o - %s | FileCheck %s
|
2018-09-07 02:38:01 +00:00
|
|
|
|
2023-05-26 16:58:48 +02:00
|
|
|
// CHECK: %[[STRUCT_CLASS1:.*]] = type { ptr }
|
2018-09-07 02:38:01 +00:00
|
|
|
|
|
|
|
@interface Class0;
|
|
|
|
@end
|
|
|
|
|
|
|
|
struct Class1 {
|
|
|
|
Class0 *f;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct Container {
|
|
|
|
Class1 a;
|
|
|
|
bool b;
|
|
|
|
};
|
|
|
|
|
|
|
|
bool getBool() {
|
2020-07-15 14:47:45 -07:00
|
|
|
extern void mayThrow();
|
|
|
|
mayThrow();
|
2018-09-07 02:38:01 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
Class0 *g;
|
|
|
|
|
|
|
|
// CHECK: define {{.*}} @_Z4testv()
|
2022-01-16 18:53:11 +09:00
|
|
|
// CHECK: invoke noundef zeroext i1 @_Z7getBoolv()
|
2023-05-26 16:58:48 +02:00
|
|
|
// CHECK: landingpad { ptr, i32 }
|
|
|
|
// CHECK: call void @_ZN6Class1D1Ev(ptr {{[^,]*}} %{{.*}})
|
2018-09-07 02:38:01 +00:00
|
|
|
// CHECK: br label
|
|
|
|
|
|
|
|
// CHECK: define linkonce_odr void @_ZN6Class1D1Ev(
|
|
|
|
|
|
|
|
Container test() {
|
|
|
|
return {{g}, getBool()};
|
|
|
|
}
|