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
71 lines
1.0 KiB
C
71 lines
1.0 KiB
C
#include <stdbool.h>
|
|
#include <stdio.h>
|
|
|
|
struct ForwardDecl;
|
|
|
|
typedef int MyInt;
|
|
|
|
void populate(MyInt i);
|
|
|
|
typedef enum MyEnum {
|
|
eOne = 1,
|
|
eTwo =2,
|
|
eThree = 3,
|
|
} MyEnumT;
|
|
|
|
typedef union MyUnion {
|
|
MyInt i;
|
|
const char* s;
|
|
} MyUnionT;
|
|
|
|
typedef struct MyNestedStruct {
|
|
MyInt i;
|
|
const char* s;
|
|
volatile char c;
|
|
char a[4];
|
|
MyEnumT e;
|
|
MyUnionT u;
|
|
_Bool b;
|
|
} MyNestedStructT;
|
|
|
|
typedef struct MyStruct {
|
|
MyNestedStructT n;
|
|
void (*f)(int);
|
|
} MyStructT;
|
|
|
|
struct LargeStruct {
|
|
char buffer[9000];
|
|
int b;
|
|
};
|
|
|
|
struct RecursiveStruct {
|
|
struct RecursiveStruct *n;
|
|
};
|
|
|
|
MyStructT foo;
|
|
struct ForwardDecl *forward;
|
|
struct LargeStruct bar;
|
|
struct RecursiveStruct ke;
|
|
|
|
void populate(MyInt i) {
|
|
foo.n.i = i;
|
|
foo.n.s = "foo";
|
|
foo.n.c = 'c';
|
|
foo.n.a[0] = 'a';
|
|
foo.n.a[1] = 'b';
|
|
foo.n.a[2] = 'c';
|
|
foo.n.a[3] = 'd';
|
|
foo.n.e = eOne;
|
|
foo.n.b = false;
|
|
foo.f = NULL;
|
|
forward = NULL;
|
|
bar.b = i;
|
|
ke.n = NULL;
|
|
}
|
|
|
|
int main(int argc, char** argv) {
|
|
populate(argc);
|
|
printf("foo is at address: %p\n", (void*)&foo); // Break here
|
|
return 0;
|
|
}
|