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
79 lines
1.7 KiB
C
79 lines
1.7 KiB
C
// RUN: %clang_cc1 %s -Eonly -std=c89 -verify=undef-true
|
|
// RUN: %clang_cc1 %s -Eonly -std=c99 -verify=undef-true
|
|
// RUN: %clang_cc1 %s -Eonly -std=c11 -verify=undef-true
|
|
// RUN: %clang_cc1 %s -Eonly -std=c17 -verify=undef-true
|
|
// RUN: %clang_cc1 %s -Eonly -std=c23 -verify=undef-true
|
|
|
|
#if __STDC_VERSION__ >= 202311L
|
|
/* undef-true-no-diagnostics */
|
|
#endif
|
|
|
|
#define FOO true
|
|
#if FOO /* #1 */
|
|
#endif
|
|
#if __STDC_VERSION__ < 202311L
|
|
/* undef-true-warning@#1 {{'true' is not defined, evaluates to 0}} */
|
|
#endif
|
|
|
|
#if true /* #2 */
|
|
#endif
|
|
#if __STDC_VERSION__ < 202311L
|
|
/* undef-true-warning@#2 {{'true' is not defined, evaluates to 0}} */
|
|
#endif
|
|
|
|
#if false || true /* #3 */
|
|
#endif
|
|
#if __STDC_VERSION__ < 202311L
|
|
/* undef-true-warning@#3 {{'true' is not defined, evaluates to 0}} */
|
|
#endif
|
|
|
|
#define true 1
|
|
|
|
#define FOO true
|
|
#if FOO
|
|
#endif
|
|
|
|
#if true
|
|
#endif
|
|
|
|
#if false || true
|
|
#endif
|
|
|
|
#undef true
|
|
|
|
#define FOO true
|
|
#if FOO /* #4 */
|
|
#endif
|
|
#if __STDC_VERSION__ < 202311L
|
|
/* undef-true-warning@#4 {{'true' is not defined, evaluates to 0}} */
|
|
#endif
|
|
|
|
#if true /* #5 */
|
|
#endif
|
|
#if __STDC_VERSION__ < 202311L
|
|
/* undef-true-warning@#5 {{'true' is not defined, evaluates to 0}} */
|
|
#endif
|
|
|
|
#if false || true /* #6 */
|
|
#endif
|
|
#if __STDC_VERSION__ < 202311L
|
|
/* undef-true-warning@#6 {{'true' is not defined, evaluates to 0}} */
|
|
#endif
|
|
|
|
#define true true
|
|
#if true /* #7 */
|
|
#endif
|
|
#if __STDC_VERSION__ < 202311L
|
|
/* undef-true-warning@#7 {{'true' is not defined, evaluates to 0}} */
|
|
#endif
|
|
#undef true
|
|
|
|
/* Test that #pragma-enabled 'Wundef' can override 'Wundef-true' */
|
|
#pragma clang diagnostic warning "-Wundef"
|
|
#if true /* #8 */
|
|
#endif
|
|
#pragma clang diagnostic ignored "-Wundef"
|
|
#if __STDC_VERSION__ < 202311L
|
|
/* undef-true-warning@#8 {{'true' is not defined, evaluates to 0}} */
|
|
#endif
|