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
67 lines
1.8 KiB
C
67 lines
1.8 KiB
C
// RUN: not %clang -fsyntax-only -fno-diagnostics-show-line-numbers -fmacro-backtrace-limit=0 %s 2>&1 | FileCheck %s
|
|
|
|
#define FOO 1+"hi"
|
|
#define BAR FOO
|
|
#define BAZ BAR
|
|
#define QUZ BAZ
|
|
#define TAZ QUZ
|
|
#define ABA TAZ
|
|
#define BAB ABA
|
|
#define ZAZ BAB
|
|
#define WAZ ZAZ
|
|
#define DROOL WAZ
|
|
#define FOOL DROOL
|
|
|
|
FOOL;
|
|
|
|
// CHECK: :15:1: error: expected identifier or '('
|
|
// CHECK: FOOL
|
|
// CHECK: ^
|
|
// CHECK: :13:14: note: expanded from macro 'FOOL'
|
|
// CHECK: #define FOOL DROOL
|
|
// CHECK: ^
|
|
// CHECK: :12:15: note: expanded from macro 'DROOL'
|
|
// CHECK: #define DROOL WAZ
|
|
// CHECK: ^
|
|
// CHECK: :11:13: note: expanded from macro 'WAZ'
|
|
// CHECK: #define WAZ ZAZ
|
|
// CHECK: ^
|
|
// CHECK: :10:13: note: expanded from macro 'ZAZ'
|
|
// CHECK: #define ZAZ BAB
|
|
// CHECK: ^
|
|
// CHECK: :9:13: note: expanded from macro 'BAB'
|
|
// CHECK: #define BAB ABA
|
|
// CHECK: ^
|
|
// CHECK: :8:13: note: expanded from macro 'ABA'
|
|
// CHECK: #define ABA TAZ
|
|
// CHECK: ^
|
|
// CHECK: :7:13: note: expanded from macro 'TAZ'
|
|
// CHECK: #define TAZ QUZ
|
|
// CHECK: ^
|
|
// CHECK: :6:13: note: expanded from macro 'QUZ'
|
|
// CHECK: #define QUZ BAZ
|
|
// CHECK: ^
|
|
// CHECK: :5:13: note: expanded from macro 'BAZ'
|
|
// CHECK: #define BAZ BAR
|
|
// CHECK: ^
|
|
// CHECK: :4:13: note: expanded from macro 'BAR'
|
|
// CHECK: #define BAR FOO
|
|
// CHECK: ^
|
|
// CHECK: :3:13: note: expanded from macro 'FOO'
|
|
// CHECK: #define FOO 1+"hi"
|
|
// CHECK: ^
|
|
|
|
#define ADD(a, b) a ## #b
|
|
ADD(L, foo)
|
|
// CHECK: error: expected identifier or '('
|
|
// CHECK: ADD(L, foo)
|
|
// CHECK: {{^\^}}
|
|
// CHECK: note: expanded from macro 'ADD'
|
|
// CHECK: #define ADD(a, b) a ## #b
|
|
// CHECK: {{^ \^}}
|
|
// CHECK: note: expanded from here
|
|
// CHECK: L"foo"
|
|
// CHECK: {{^\^}}
|
|
|
|
// CHECK: 2 errors generated.
|