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
39 lines
1.8 KiB
C
39 lines
1.8 KiB
C
// RUN: %clang_cc1 -fsyntax-only -Wunknown-pragmas -verify %s
|
|
// RUN: %clang_cc1 -E %s 2>&1 | FileCheck --strict-whitespace %s
|
|
|
|
// GCC doesn't expand macro args for unrecognized pragmas.
|
|
#define bar xX
|
|
#pragma foo bar // expected-warning {{unknown pragma ignored}}
|
|
// CHECK-NOT: unknown pragma in STDC namespace
|
|
// CHECK: {{^}}#pragma foo bar{{$}}
|
|
|
|
#pragma STDC FP_CONTRACT ON
|
|
#pragma STDC FP_CONTRACT OFF
|
|
#pragma STDC FP_CONTRACT DEFAULT
|
|
#pragma STDC FP_CONTRACT IN_BETWEEN // expected-warning {{expected 'ON' or 'OFF' or 'DEFAULT' in pragma}}
|
|
// CHECK: {{^}}#pragma STDC FP_CONTRACT ON{{$}}
|
|
// CHECK: {{^}}#pragma STDC FP_CONTRACT OFF{{$}}
|
|
// CHECK: {{^}}#pragma STDC FP_CONTRACT DEFAULT{{$}}
|
|
// CHECK: {{^}}#pragma STDC FP_CONTRACT IN_BETWEEN{{$}}
|
|
|
|
#pragma STDC CX_LIMITED_RANGE ON
|
|
#pragma STDC CX_LIMITED_RANGE OFF
|
|
#pragma STDC CX_LIMITED_RANGE DEFAULT
|
|
#pragma STDC CX_LIMITED_RANGE IN_BETWEEN // expected-warning {{expected 'ON' or 'OFF' or 'DEFAULT' in pragma}}
|
|
// CHECK: {{^}}#pragma STDC CX_LIMITED_RANGE ON{{$}}
|
|
// CHECK: {{^}}#pragma STDC CX_LIMITED_RANGE OFF{{$}}
|
|
// CHECK: {{^}}#pragma STDC CX_LIMITED_RANGE DEFAULT{{$}}
|
|
// CHECK: {{^}}#pragma STDC CX_LIMITED_RANGE IN_BETWEEN{{$}}
|
|
|
|
#pragma STDC CX_LIMITED_RANGE // expected-warning {{expected 'ON' or 'OFF' or 'DEFAULT' in pragma}}
|
|
#pragma STDC CX_LIMITED_RANGE ON FULL POWER // expected-warning {{expected end of directive in pragma}}
|
|
//expected-error@-1 {{unknown type name 'POWER'}}
|
|
//expected-error@-2 {{expected identifier or '('}}
|
|
// CHECK: {{^}}#pragma STDC CX_LIMITED_RANGE{{$}}
|
|
// CHECK: {{^}}#pragma STDC CX_LIMITED_RANGE ON FULL POWER{{$}}
|
|
|
|
#pragma STDC SO_GREAT // expected-warning {{unknown pragma in STDC namespace}}
|
|
#pragma STDC // expected-warning {{unknown pragma in STDC namespace}}
|
|
// CHECK: {{^}}#pragma STDC SO_GREAT{{$}}
|
|
// CHECK: {{^}}#pragma STDC{{$}}
|