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
84 lines
1.9 KiB
C++
84 lines
1.9 KiB
C++
// When linking with link.exe, -gdwarf still produces PDB instead.
|
|
// UNSUPPORTED: system-windows
|
|
|
|
// RUN: %clangxx_host -gdwarf -std=c++11 -o %t %s
|
|
// RUN: %lldb %t \
|
|
// RUN: -o run \
|
|
// RUN: -o "frame var --show-types f" \
|
|
// RUN: -o "frame var vla0" \
|
|
// RUN: -o "frame var fla0" \
|
|
// RUN: -o "frame var fla1" \
|
|
// RUN: -o "frame var vla01" \
|
|
// RUN: -o "frame var vla10" \
|
|
// RUN: -o "frame var vlaN" \
|
|
// RUN: -o "frame var vlaNM" \
|
|
// RUN: -o exit | FileCheck %s
|
|
|
|
struct Foo {
|
|
static constexpr int n = 1;
|
|
int m_vlaN[n];
|
|
|
|
int m_vla0[0];
|
|
};
|
|
|
|
int main() {
|
|
Foo f;
|
|
f.m_vlaN[0] = 60;
|
|
|
|
// CHECK: (lldb) frame var --show-types f
|
|
// CHECK-NEXT: (Foo) f = {
|
|
// CHECK-NEXT: (int[1]) m_vlaN = {
|
|
// CHECK-NEXT: (int) [0] = 60
|
|
// CHECK-NEXT: }
|
|
// CHECK-NEXT: (int[0]) m_vla0 = {}
|
|
// CHECK-NEXT: }
|
|
|
|
int vla0[0] = {};
|
|
|
|
// CHECK: (lldb) frame var vla0
|
|
// CHECK-NEXT: (int[0]) vla0 = {}
|
|
|
|
int fla0[] = {};
|
|
|
|
// CHECK: (lldb) frame var fla0
|
|
// CHECK-NEXT: (int[0]) fla0 = {}
|
|
|
|
int fla1[] = {42};
|
|
|
|
// CHECK: (lldb) frame var fla1
|
|
// CHECK-NEXT: (int[1]) fla1 = ([0] = 42)
|
|
|
|
int vla01[0][1];
|
|
|
|
// CHECK: (lldb) frame var vla01
|
|
// CHECK-NEXT: (int[0][1]) vla01 = {}
|
|
|
|
int vla10[1][0];
|
|
|
|
// CHECK: (lldb) frame var vla10
|
|
// CHECK-NEXT: (int[1][0]) vla10 = ([0] = int[0]
|
|
|
|
int n = 3;
|
|
int vlaN[n];
|
|
for (int i = 0; i < n; ++i)
|
|
vlaN[i] = -i;
|
|
|
|
// CHECK: (lldb) frame var vlaN
|
|
// CHECK-NEXT: (int[]) vlaN = ([0] = 0, [1] = -1, [2] = -2)
|
|
|
|
int m = 2;
|
|
int vlaNM[n][m];
|
|
for (int i = 0; i < n; ++i)
|
|
for (int j = 0; j < m; ++j)
|
|
vlaNM[i][j] = i + j;
|
|
|
|
// FIXME: multi-dimensional VLAs aren't well supported
|
|
// CHECK: (lldb) frame var vlaNM
|
|
// CHECK-NEXT: (int[][]) vlaNM = {
|
|
// CHECK-NEXT: [0] = ([0] = 0, [1] = 1, [2] = 1)
|
|
// CHECK-NEXT: [1] = ([0] = 1, [1] = 1, [2] = 2)
|
|
// CHECK-NEXT: }
|
|
|
|
__builtin_debugtrap();
|
|
}
|