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
52 lines
1.9 KiB
Common Lisp
52 lines
1.9 KiB
Common Lisp
// Test this without pch.
|
|
// RUN: %clang_cc1 %s -triple spir-unknown-unknown -verify -pedantic -fsyntax-only
|
|
|
|
// Test with pch.
|
|
// RUN: %clang_cc1 -x cl %S/extension-begin.h -triple spir-unknown-unknown -emit-pch -o %t.pch -pedantic
|
|
// RUN: %clang_cc1 %s -triple spir-unknown-unknown -include-pch %t.pch -DIMPLICIT_INCLUDE -DUSE_PCH -fsyntax-only -verify -pedantic
|
|
|
|
// Test with modules
|
|
// RUN: rm -rf %t.modules
|
|
// RUN: mkdir -p %t.modules
|
|
//
|
|
// RUN: %clang_cc1 -cl-std=CL1.2 -DIMPLICIT_INCLUDE -include %S/extension-begin.h -triple spir-unknown-unknown -O0 -emit-llvm -o - -fmodules -fimplicit-module-maps -fmodules-cache-path=%t.modules %s -verify -pedantic
|
|
//
|
|
// RUN: rm -rf %t.modules
|
|
// RUN: mkdir -p %t.modules
|
|
//
|
|
// RUN: %clang_cc1 -cl-std=CL2.0 -DIMPLICIT_INCLUDE -include %S/extension-begin.h -triple spir-unknown-unknown -O0 -emit-llvm -o - -fmodules -fimplicit-module-maps -fmodules-cache-path=%t.modules %s -verify -pedantic
|
|
|
|
#pragma OPENCL EXTENSION my_ext : enable
|
|
#ifndef IMPLICIT_INCLUDE
|
|
// expected-warning@-2 {{OpenCL extension 'my_ext' unknown or does not require pragma - ignoring}}
|
|
// expected-warning@+2 {{OpenCL extension 'my_ext' unknown or does not require pragma - ignoring}}
|
|
#endif // IMPLICIT_INCLUDE
|
|
#pragma OPENCL EXTENSION my_ext : disable
|
|
|
|
#ifndef IMPLICIT_INCLUDE
|
|
#include "extension-begin.h"
|
|
#endif // IMPLICIT_INCLUDE
|
|
#ifndef USE_PCH
|
|
// expected-warning@extension-begin.h:4 {{expected 'disable' - ignoring}}
|
|
// expected-warning@extension-begin.h:5 {{expected 'disable' - ignoring}}
|
|
#endif // USE_PCH
|
|
|
|
#if defined(IMPLICIT_INCLUDE) && defined(USE_PCH)
|
|
//expected-no-diagnostics
|
|
#endif
|
|
|
|
// Tests that the pragmas are accepted for backward compatibility.
|
|
#pragma OPENCL EXTENSION my_ext : enable
|
|
#pragma OPENCL EXTENSION my_ext : disable
|
|
|
|
#ifndef my_ext
|
|
#error "Missing my_ext macro"
|
|
#endif
|
|
|
|
// When extension is supported its functionality can be used freely.
|
|
void test(void) {
|
|
struct A test_A1;
|
|
f();
|
|
g(0);
|
|
}
|