CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
82 lines
1.3 KiB
Objective-C
82 lines
1.3 KiB
Objective-C
// RUN: %clang_cc1 -triple x86_64-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -emit-llvm -o %t %s
|
|
// RUN: %clang_cc1 -triple i386-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -emit-llvm -o %t %s
|
|
// RUN: %clang_cc1 -triple i386-pc-linux-gnu -fobjc-runtime=macosx-fragile-10.5 -emit-llvm -o %t %s
|
|
|
|
@interface Object
|
|
- (id) alloc;
|
|
- (id) init;
|
|
@end
|
|
|
|
extern void abort(void);
|
|
|
|
#define CHECK_IF(expr) if(!(expr)) abort();
|
|
|
|
@interface Base: Object
|
|
{
|
|
int full;
|
|
int full2: 32;
|
|
int _refs: 8;
|
|
int field2: 3;
|
|
unsigned f3: 8;
|
|
short cc;
|
|
unsigned g: 16;
|
|
int r2: 8;
|
|
int r3: 8;
|
|
int r4: 2;
|
|
int r5: 8;
|
|
char c;
|
|
}
|
|
- (void)setValues;
|
|
@end
|
|
|
|
@interface Derived: Base
|
|
{
|
|
char d;
|
|
int _field3: 6;
|
|
}
|
|
- (void)checkValues;
|
|
@end
|
|
|
|
@implementation Base
|
|
-(void)setValues {
|
|
full = 1;
|
|
full2 = 2;
|
|
_refs = 3;
|
|
field2 = 1;
|
|
f3 = 6;
|
|
cc = 7;
|
|
g = 8;
|
|
r2 = 9;
|
|
r3 = 10;
|
|
r4 = 1;
|
|
r5 = 12;
|
|
c = 13;
|
|
}
|
|
@end
|
|
|
|
@implementation Derived
|
|
-(void)checkValues {
|
|
CHECK_IF(full == 1);
|
|
CHECK_IF(full2 == 2);
|
|
CHECK_IF(_refs == 3);
|
|
CHECK_IF(field2 == 1);
|
|
CHECK_IF(f3 == 6);
|
|
CHECK_IF(cc == 7);
|
|
CHECK_IF(g == 8);
|
|
CHECK_IF(r2 == 9);
|
|
CHECK_IF(r3 == 10);
|
|
CHECK_IF(r4 == 1);
|
|
CHECK_IF(r5 == 12);
|
|
CHECK_IF(c == 13);
|
|
}
|
|
@end
|
|
|
|
int main(void) {
|
|
Derived *obj = [[Derived alloc] init];
|
|
|
|
[obj setValues];
|
|
[obj checkValues];
|
|
|
|
return 0;
|
|
}
|