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
62 lines
2.4 KiB
C
62 lines
2.4 KiB
C
// RUN: %clang_cc1 -fminimize-whitespace -E %s 2>&1 | FileCheck %s --strict-whitespace --check-prefix=MINCOL
|
|
// RUN: %clang_cc1 -fminimize-whitespace -E -C %s 2>&1 | FileCheck %s --strict-whitespace --check-prefix=MINCCOL
|
|
// RUN: %clang_cc1 -fminimize-whitespace -E -P %s 2>&1 | FileCheck %s --strict-whitespace --check-prefix=MINWS
|
|
// RUN: %clang_cc1 -fminimize-whitespace -E -C -P %s 2>&1 | FileCheck %s --strict-whitespace --check-prefix=MINCWS
|
|
// The follow empty lines ensure that a #line directive is emitted instead of newline padding after the RUN comments.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define NOT_OMP omp something
|
|
#define HASH #
|
|
|
|
int a; /* span-comment */
|
|
int b ; // line-comment
|
|
_Pragma ( "omp barrier" ) x // more line-comments
|
|
#pragma omp nothing // another comment
|
|
HASH pragma NOT_OMP
|
|
int e; // again a line
|
|
int \
|
|
f ;
|
|
|
|
|
|
// MINCOL: {{^}}# 15 "{{.*}}minimize-whitespace.c"{{$}}
|
|
// MINCOL: {{^}}int a;{{$}}
|
|
// MINCOL-NEXT: {{^}}int b;{{$}}
|
|
// MINCOL-NEXT: {{^}}#pragma omp barrier{{$}}
|
|
// MINCOL-NEXT: # 17 "{{.*}}minimize-whitespace.c"
|
|
// MINCOL-NEXT: {{^}}x{{$}}
|
|
// MINCOL-NEXT: {{^}}#pragma omp nothing{{$}}
|
|
// MINCOL-NEXT: {{^ }}#pragma omp something{{$}}
|
|
// MINCOL-NEXT: {{^}}int e;{{$}}
|
|
// MINCOL-NEXT: {{^}}int f;{{$}}
|
|
|
|
// FIXME: Comments after pragmas disappear, even without -fminimize-whitespace
|
|
// MINCCOL: {{^}}# 15 "{{.*}}minimize-whitespace.c"{{$}}
|
|
// MINCCOL: {{^}}int a;/* span-comment */{{$}}
|
|
// MINCCOL-NEXT: {{^}}int b;// line-comment{{$}}
|
|
// MINCCOL-NEXT: {{^}}#pragma omp barrier{{$}}
|
|
// MINCCOL-NEXT: # 17 "{{.*}}minimize-whitespace.c"
|
|
// MINCCOL-NEXT: {{^}}x// more line-comments{{$}}
|
|
// MINCCOL-NEXT: {{^}}#pragma omp nothing{{$}}
|
|
// MINCCOL-NEXT: {{^ }}#pragma omp something{{$}}
|
|
// MINCCOL-NEXT: {{^}}int e;// again a line{{$}}
|
|
// MINCCOL-NEXT: {{^}}int f;{{$}}
|
|
|
|
// MINWS: {{^}}int a;int b;{{$}}
|
|
// MINWS-NEXT: {{^}}#pragma omp barrier{{$}}
|
|
// MINWS-NEXT: {{^}}x{{$}}
|
|
// MINWS-NEXT: {{^}}#pragma omp nothing{{$}}
|
|
// MINWS-NEXT: {{^ }}#pragma omp something int e;int f;{{$}}
|
|
|
|
// FIXME: Comments after pragmas disappear, even without -fminimize-whitespace
|
|
// MINCWS: {{^}}int a;/* span-comment */int b;// line-comment{{$}}
|
|
// MINCWS-NEXT: {{^}}#pragma omp barrier{{$}}
|
|
// MINCWS-NEXT: {{^}}x// more line-comments{{$}}
|
|
// MINCWS-NEXT: {{^}}#pragma omp nothing{{$}}
|
|
// MINCWS-NEXT: {{^ }}#pragma omp something int e;// again a line{{$}}
|
|
// MINCWS-NEXT: {{^}}int f;
|
|
|