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
110 lines
4.5 KiB
C
110 lines
4.5 KiB
C
// RUN: rm -rf %t.pch %t.ll
|
|
// RUN: %clang -x c-header %S/Inputs/ignored-pch.h -o %t.pch
|
|
// RUN: %clang -S -emit-llvm %s -include-pch %t.pch -o %t.ll
|
|
// RUN: ls %t.pch
|
|
// RUN: ls %t.ll
|
|
|
|
// RUN: rm -rf %t.pch %t.ll
|
|
// RUN: %clang -x c-header %S/Inputs/ignored-pch.h -o %t.pch
|
|
// RUN: %clang %s -emit-ast -include-pch %t.pch -o %t.ll
|
|
// RUN: ls %t.pch
|
|
// RUN: ls %t.ll
|
|
|
|
// Check that -ignore-pch causes -emit-pch and -include-pch options to be ignored.
|
|
// RUN: rm -rf %t.pch %t.ll
|
|
// RUN: %clang -x c-header %S/Inputs/ignored-pch.h -ignore-pch -o %t.pch
|
|
// RUN: %clang -S -emit-llvm %s -include-pch %t.pch -ignore-pch -o %t.ll
|
|
// RUN: not ls %t.pch
|
|
// RUN: ls %t.ll
|
|
|
|
// RUN: rm -rf %t.pch %t.ll
|
|
// RUN: %clang -emit-ast %s -include-pch %t.pch -ignore-pch -o %t.ll
|
|
// RUN: not ls %t.ll
|
|
|
|
// Check that -ignore-pch works for multiple PCH related options.
|
|
// Test with -building-pch-with-obj.
|
|
// RUN: rm -rf %t.pch %t.ll
|
|
// RUN: %clang -x c-header %S/Inputs/ignored-pch.h -ignore-pch -Xclang -building-pch-with-obj -o %t.pch
|
|
// RUN: %clang -S -emit-llvm %s -include-pch %t.pch -ignore-pch -Xclang -building-pch-with-obj -o %t.ll
|
|
// RUN: not ls %t.pch
|
|
// RUN: ls %t.ll
|
|
|
|
// Test with -fallow-pch-with-compiler-errors.
|
|
// RUN: rm -rf %t.pch %t.ll
|
|
// RUN: %clang -x c-header %S/Inputs/ignored-pch.h -ignore-pch -Xclang -fallow-pch-with-compiler-errors -o %t.pch
|
|
// RUN: %clang -S -emit-llvm %s -include-pch %t.pch -ignore-pch -Xclang -fallow-pch-with-compiler-errors -o %t.ll
|
|
// RUN: not ls %t.pch
|
|
// RUN: ls %t.ll
|
|
|
|
// Test with -fallow-pch-with-different-modules-cache-path.
|
|
// RUN: rm -rf %t.pch %t.ll
|
|
// RUN: %clang -x c-header %S/Inputs/ignored-pch.h -ignore-pch -Xclang -fallow-pch-with-different-modules-cache-path -o %t.pch
|
|
// RUN: %clang -S -emit-llvm %s -ignore-pch -include-pch %t.pch -Xclang -fallow-pch-with-different-modules-cache-path -o %t.ll
|
|
// RUN: not ls %t.pch
|
|
// RUN: ls %t.ll
|
|
|
|
// Test with -fpch-codegen.
|
|
// RUN: rm -rf %t.pch %t.ll
|
|
// RUN: %clang -x c-header %S/Inputs/ignored-pch.h -ignore-pch -fpch-codegen -o %t.pch
|
|
// RUN: %clang -S -emit-llvm %s -include-pch %t.pch -ignore-pch -fpch-codegen -o %t.ll
|
|
// RUN: not ls %t.pch
|
|
// RUN: ls %t.ll
|
|
|
|
// Test with -fpch-debuginfo.
|
|
// RUN: rm -rf %t.pch %t.ll
|
|
// RUN: %clang -x c-header %S/Inputs/ignored-pch.h -ignore-pch -fpch-debuginfo -o %t.pch
|
|
// RUN: %clang -S -emit-llvm %s -include-pch %t.pch -ignore-pch -fpch-debuginfo -o %t.ll
|
|
// RUN: not ls %t.pch
|
|
// RUN: ls %t.ll
|
|
|
|
// Test with -fpch-instantiate-templates.
|
|
// RUN: rm -rf %t.pch %t.ll
|
|
// RUN: %clang -x c-header %S/Inputs/ignored-pch.h -ignore-pch -fpch-instantiate-templates -o %t.pch
|
|
// RUN: %clang -S -emit-llvm %s -include-pch %t.pch -ignore-pch -fpch-instantiate-templates -o %t.ll
|
|
// RUN: not ls %t.pch
|
|
// RUN: ls %t.ll
|
|
|
|
// Test with -fno-pch-timestamp.
|
|
// RUN: rm -rf %t.pch %t.ll
|
|
// RUN: %clang -x c-header %S/Inputs/ignored-pch.h -ignore-pch -Xclang -fno-pch-timestamp -o %t.pch
|
|
// RUN: %clang -S -emit-llvm %s -include-pch %t.pch -ignore-pch -Xclang -fno-pch-timestamp -o %t.ll
|
|
// RUN: not ls %t.pch
|
|
// RUN: ls %t.ll
|
|
|
|
// Test with -fno-validate-pch.
|
|
// RUN: rm -rf %t.pch %t.ll
|
|
// RUN: %clang -x c-header %S/Inputs/ignored-pch.h -ignore-pch -Xclang -fno-validate-pch -o %t.pch
|
|
// RUN: %clang -S -emit-llvm %s -include-pch %t.pch -ignore-pch -Xclang -fno-validate-pch -o %t.ll
|
|
// RUN: not ls %t.pch
|
|
// RUN: ls %t.ll
|
|
|
|
// Test with -relocatable-pch.
|
|
// RUN: rm -rf %t.pch %t.ll
|
|
// RUN: %clang -x c-header %S/Inputs/ignored-pch.h -ignore-pch -relocatable-pch -o %t.pch
|
|
// RUN: %clang -S -emit-llvm %s -include-pch %t.pch -ignore-pch -relocatable-pch -o %t.ll
|
|
// RUN: not ls %t.pch
|
|
// RUN: ls %t.ll
|
|
|
|
// Test with -pch-through-hdrstop-create/-pch-through-hdrstop-use
|
|
// RUN: rm -rf %t.pch %t.ll
|
|
// RUN: %clang -x c-header %S/Inputs/ignored-pch.h -ignore-pch -Xclang -pch-through-hdrstop-create -o %t.pch
|
|
// RUN: %clang -S -emit-llvm %s -include-pch %t.pch -ignore-pch -Xclang -pch-through-hdrstop-use -o %t.ll
|
|
// RUN: not ls %t.pch
|
|
// RUN: ls %t.ll
|
|
|
|
|
|
// Test with AST dump output:
|
|
// RUN: rm -rf %t.pch %t.ll
|
|
// RUN: %clang -x c-header %S/Inputs/ignored-pch.h -o %t.pch
|
|
// RUN: %clang %s -include-pch %t.pch -Xclang -ast-dump-all -c | FileCheck --check-prefix=CHECK-AST-PCH %s
|
|
// RUN: %clang %s -include-pch %t.pch -ignore-pch -Xclang -ast-dump-all -c | FileCheck --check-prefix=CHECK-AST %s
|
|
|
|
// CHECK-AST-PCH: <undeserialized declarations>
|
|
// CHECK-AST-NOT: <undeserialized declarations>
|
|
|
|
#pragma hdrstop
|
|
#include "Inputs/ignored-pch.h"
|
|
int main() {
|
|
return f();
|
|
}
|