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
97 lines
1.2 KiB
C
97 lines
1.2 KiB
C
// Header for PCH test stmts.c
|
|
|
|
void f0(int x) {
|
|
// NullStmt
|
|
;
|
|
// IfStmt
|
|
if (x) {
|
|
} else if (x + 1) {
|
|
}
|
|
|
|
switch (x) {
|
|
case 0:
|
|
x = 17;
|
|
break;
|
|
|
|
case 1:
|
|
break;
|
|
|
|
default:
|
|
switch (x >> 1) {
|
|
case 7:
|
|
// fall through
|
|
case 9:
|
|
break;
|
|
}
|
|
x += 2;
|
|
break;
|
|
}
|
|
|
|
while (x > 20) {
|
|
if (x > 30) {
|
|
--x;
|
|
continue;
|
|
} else if (x < 5)
|
|
break;
|
|
else
|
|
goto done;
|
|
}
|
|
|
|
do {
|
|
x++;
|
|
} while (x < 10);
|
|
|
|
almost_done:
|
|
for (int y = x; y < 20; ++y) {
|
|
if (x + y == 12)
|
|
return;
|
|
else if (x - y == 7)
|
|
goto almost_done;
|
|
}
|
|
|
|
done:
|
|
x = x + 2;
|
|
|
|
int z = x, *y, j = 5;
|
|
}
|
|
|
|
int f1(int x) {
|
|
switch (x) {
|
|
case 17:
|
|
return 12;
|
|
|
|
default:
|
|
break;
|
|
}
|
|
|
|
// variable-length array
|
|
int array[x * 17 + 3];
|
|
|
|
return x*2;
|
|
}
|
|
|
|
const char* what_is_my_name(void) { return __func__; }
|
|
|
|
int computed_goto(int x) {
|
|
start:
|
|
x = x << 1;
|
|
void *location = &&start;
|
|
|
|
if (x > 17)
|
|
location = &&done;
|
|
|
|
while (x > 12) {
|
|
--x;
|
|
if (x == 15)
|
|
goto *location;
|
|
}
|
|
|
|
done:
|
|
return 5;
|
|
}
|
|
|
|
#define maxint(a,b) ({int _a = (a), _b = (b); _a > _b ? _a : _b; })
|
|
int weird_max(int x, int y) {
|
|
return maxint(++x, --y);
|
|
}
|