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
45 lines
1.4 KiB
HLSL
45 lines
1.4 KiB
HLSL
// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-compute -x hlsl -o - %s -verify
|
||
// RUN: %clang_cc1 -triple spirv-unknown-vulkan1.3-compute -x hlsl -o - %s -verify
|
||
|
||
// expected-error@+1 {{expected HLSL Semantic identifier}}
|
||
void Entry(int GI : ) { }
|
||
|
||
// expected-error@+1 {{unknown HLSL semantic 'SV_IWantAPony'}}
|
||
void Pony(int GI : SV_IWantAPony) { }
|
||
|
||
// expected-error@+3 {{expected HLSL Semantic identifier}}
|
||
// expected-error@+2 {{expected ')'}}
|
||
// expected-note@+1 {{to match this '('}}
|
||
void SuperPony(int GI : 0) { }
|
||
|
||
// '_' is a valid CPP identifier.
|
||
void MegaPony(int GI : _) { }
|
||
|
||
void GarguantuanPony(int GI : _1) { }
|
||
|
||
void CoolPony(int GI : A0A0) { }
|
||
|
||
void NicePony(int GI : A_0) { }
|
||
|
||
void CutePony(int GI : A00) { }
|
||
|
||
// expected-error@+2 {{expected ')'}}
|
||
// expected-note@+1 {{to match this '('}}
|
||
void DoublePony(int GI : A00 B) { }
|
||
|
||
// Unicode can be used:
|
||
// https://timsong-cpp.github.io/cppwp/n3337/charname.allowed
|
||
void FrenchPony(int GI : garçon_de_café) { }
|
||
void UnicodePony(int GI : ℮) { }
|
||
|
||
// Since P1949 seems Emojis are not allowed, even if in the range
|
||
// mentioned in N3337.
|
||
// https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2021/p1949r7.html
|
||
|
||
// expected-error@+2 {{unexpected character <U+1F60A>}}
|
||
// expected-error@+1 {{expected HLSL Semantic identifier}}
|
||
void UTFPony(int GI : 😊) { }
|
||
|
||
// expected-error@+1 {{character <U+1F60A> not allowed in an identifier}}
|
||
void SmilingPony(int GI : PonyWithA😊) { }
|