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
41 lines
1.1 KiB
C
41 lines
1.1 KiB
C
// RUN: %clang_analyze_cc1 -analyzer-checker=debug.DumpCFG %s 2>&1 \
|
|
// RUN: | FileCheck %s
|
|
|
|
struct Q { int a, b, c; };
|
|
union UQ { struct Q q; };
|
|
union UQ getUQ(void) {
|
|
union UQ u = { { 1, 2, 3 } };
|
|
return u;
|
|
}
|
|
|
|
void test(void) {
|
|
struct LUQ { union UQ uq; } var = { getUQ(), .uq.q.a = 100 };
|
|
struct Q s[] = {
|
|
[0] = (struct Q){1, 2},
|
|
[0].c = 3
|
|
};
|
|
}
|
|
|
|
// CHECK: void test(void)
|
|
// CHECK: [B1]
|
|
// CHECK: 1: getUQ
|
|
// CHECK: 2: [B1.1] (ImplicitCastExpr, FunctionToPointerDecay, union UQ (*)(void))
|
|
// CHECK: 3: [B1.2]()
|
|
// CHECK: 4: 100
|
|
// CHECK: 5: /*no init*/
|
|
// CHECK: 6: /*no init*/
|
|
// CHECK: 7: {[B1.4], [B1.5], [B1.6]}
|
|
// CHECK: 8: {[B1.7]}
|
|
// CHECK: 9: {/*base*/[B1.3], /*updater*/[B1.8]}
|
|
// CHECK: 10: {[B1.3], .uq.q.a = [B1.4]}
|
|
// CHECK: 11: struct LUQ var = {getUQ(), .uq.q.a = 100};
|
|
// CHECK: 12: 1
|
|
// CHECK: 13: 2
|
|
// CHECK: 14: {[B1.12], [B1.13]}
|
|
// CHECK: 17: /*no init*/
|
|
// CHECK: 18: /*no init*/
|
|
// CHECK: 19: 3
|
|
// CHECK: 20: {[B1.17], [B1.18], [B1.19]}
|
|
// CHECK: 21: {/*base*/[B1.16], /*updater*/[B1.20]}
|
|
// CHECK: 23: struct Q s[] = {[0] = (struct Q){1, 2}, [0].c = 3};
|