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
58 lines
1.4 KiB
C
58 lines
1.4 KiB
C
enum {
|
|
VALUE = 3
|
|
};
|
|
|
|
extern int glob_x;
|
|
|
|
int f(int x) {
|
|
return x+glob_x+VALUE;
|
|
}
|
|
|
|
typedef struct {
|
|
int x;
|
|
int y;
|
|
} Vector;
|
|
|
|
int vector_get_x(Vector v) {
|
|
int x = v.x;
|
|
return x;
|
|
}
|
|
|
|
int f(int);
|
|
int f(int);
|
|
|
|
// RUN: c-index-test \
|
|
|
|
// RUN: -file-refs-at=%s:2:5 \
|
|
// CHECK: EnumConstantDecl=VALUE:2:3 (Definition)
|
|
// CHECK-NEXT: EnumConstantDecl=VALUE:2:3 (Definition) =[2:3 - 2:8]
|
|
// CHECK-NEXT: DeclRefExpr=VALUE:2:3 =[8:19 - 8:24]
|
|
|
|
// RUN: -file-refs-at=%s:8:15 \
|
|
// CHECK-NEXT: DeclRefExpr=glob_x:5:12
|
|
// CHECK-NEXT: VarDecl=glob_x:5:12 =[5:12 - 5:18]
|
|
// CHECK-NEXT: DeclRefExpr=glob_x:5:12 =[8:12 - 8:18]
|
|
|
|
// RUN: -file-refs-at=%s:8:10 \
|
|
// CHECK-NEXT: DeclRefExpr=x:7:11
|
|
// CHECK-NEXT: ParmDecl=x:7:11 (Definition) =[7:11 - 7:12]
|
|
// CHECK-NEXT: DeclRefExpr=x:7:11 =[8:10 - 8:11]
|
|
|
|
// RUN: -file-refs-at=%s:12:7 \
|
|
// CHECK-NEXT: FieldDecl=x:12:7 (Definition)
|
|
// CHECK-NEXT: FieldDecl=x:12:7 (Definition) =[12:7 - 12:8]
|
|
// CHECK-NEXT: MemberRefExpr=x:12:7 {{.*}} =[17:13 - 17:14]
|
|
|
|
// RUN: -file-refs-at=%s:16:21 \
|
|
// CHECK-NEXT: TypeRef=Vector:14:3
|
|
// CHECK-NEXT: TypedefDecl=Vector:14:3 (Definition) =[14:3 - 14:9]
|
|
// CHECK-NEXT: TypeRef=Vector:14:3 =[16:18 - 16:24]
|
|
|
|
// RUN: -file-refs-at=%s:21:5 \
|
|
// CHECK-NEXT: FunctionDecl=f:21:5
|
|
// CHECK-NEXT: FunctionDecl=f:7:5 (Definition) =[7:5 - 7:6]
|
|
// CHECK-NEXT: FunctionDecl=f:21:5 =[21:5 - 21:6]
|
|
// CHECK-NEXT: FunctionDecl=f:22:5 =[22:5 - 22:6]
|
|
|
|
// RUN: %s | FileCheck %s
|