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
28 lines
1.1 KiB
C
28 lines
1.1 KiB
C
// Test without serialization:
|
|
// RUN: %clang_cc1 -std=c23 -fdefer-ts -ast-dump %s -triple x86_64-linux-gnu \
|
|
// RUN: | FileCheck %s
|
|
//
|
|
// Test with serialization:
|
|
// RUN: %clang_cc1 -std=c23 -fdefer-ts -triple x86_64-linux-gnu -emit-pch -o %t %s
|
|
// RUN: %clang_cc1 -std=c23 -fdefer-ts -triple x86_64-linux-gnu -include-pch %t -ast-dump-all /dev/null \
|
|
// RUN: | FileCheck %s
|
|
|
|
static inline void f() {
|
|
_Defer 3;
|
|
_Defer { 4; }
|
|
_Defer _Defer if (true) {}
|
|
}
|
|
|
|
// CHECK-LABEL: f 'void (void)' static inline
|
|
// CHECK-NEXT: `-CompoundStmt {{.*}} <col:24, line:14:1>
|
|
// CHECK-NEXT: |-DeferStmt {{.*}} <line:11:3, col:10>
|
|
// CHECK-NEXT: | `-IntegerLiteral {{.*}} <col:10> 'int' 3
|
|
// CHECK-NEXT: |-DeferStmt {{.*}} <line:12:3, col:15>
|
|
// CHECK-NEXT: | `-CompoundStmt {{.*}} <col:10, col:15>
|
|
// CHECK-NEXT: | `-IntegerLiteral {{.*}} <col:12> 'int' 4
|
|
// CHECK-NEXT: `-DeferStmt {{.*}} <line:13:3, col:28>
|
|
// CHECK-NEXT: `-DeferStmt {{.*}} <col:10, col:28>
|
|
// CHECK-NEXT: `-IfStmt {{.*}} <col:17, col:28>
|
|
// CHECK-NEXT: |-CXXBoolLiteralExpr {{.*}} <col:21> 'bool' true
|
|
// CHECK-NEXT: `-CompoundStmt {{.*}} <col:27, col:28>
|