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
75 lines
2.0 KiB
Plaintext
75 lines
2.0 KiB
Plaintext
// RUN: rm -rf %t
|
|
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fobjc-arc -I %S/Inputs -fmodules-cache-path=%t %s -verify -DUSE_1 -DUSE_2 -DUSE_3 -DUSE_4 -DUSE_5
|
|
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fobjc-arc -I %S/Inputs -fmodules-cache-path=%t %s -verify -DUSE_2 -DUSE_3 -DUSE_4 -DUSE_5
|
|
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fobjc-arc -I %S/Inputs -fmodules-cache-path=%t %s -verify -DUSE_3 -DUSE_4 -DUSE_5
|
|
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fobjc-arc -I %S/Inputs -fmodules-cache-path=%t %s -verify -DUSE_4 -DUSE_5
|
|
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fobjc-arc -I %S/Inputs -fmodules-cache-path=%t %s -verify -DUSE_5
|
|
|
|
// expected-note@Inputs/def.h:5 0-1{{here}}
|
|
// expected-note@Inputs/def.h:11 0-1{{here}}
|
|
// expected-note@Inputs/def.h:16 0-1{{here}}
|
|
// expected-note@Inputs/def-include.h:11 0-1{{here}}
|
|
|
|
@class Def;
|
|
Def *def;
|
|
class Def2; // expected-note 0-1{{forward decl}}
|
|
Def2 *def2;
|
|
namespace Def3NS { class Def3; } // expected-note 0-1{{forward decl}}
|
|
Def3NS::Def3 *def3;
|
|
|
|
@interface Unrelated
|
|
- defMethod;
|
|
@end
|
|
|
|
@import decldef;
|
|
#ifdef USE_1
|
|
A *a1; // expected-error{{declaration of 'A' must be imported from module 'decldef.Def'}}
|
|
B *b1;
|
|
#define USED
|
|
#endif
|
|
@import decldef.Decl;
|
|
|
|
A *a2;
|
|
B *b;
|
|
|
|
void testA(A *a) {
|
|
#ifdef USE_2
|
|
a->ivar = 17;
|
|
#ifndef USED
|
|
// expected-error@-2{{definition of 'A' must be imported from module 'decldef.Def' before it is required}}
|
|
#define USED
|
|
#endif
|
|
#endif
|
|
}
|
|
|
|
void testB() {
|
|
#ifdef USE_3
|
|
B b;
|
|
#ifndef USED
|
|
// expected-error@-2{{definition of 'B' must be imported from module 'decldef.Def' before it is required}}
|
|
#define USED
|
|
#endif
|
|
#endif
|
|
}
|
|
|
|
void testDef() {
|
|
#ifdef USE_4
|
|
[def defMethod];
|
|
#ifndef USED
|
|
// expected-error@-2{{definition of 'Def' must be imported from module 'decldef.Def' before it is required}}
|
|
#define USED
|
|
#endif
|
|
#endif
|
|
}
|
|
|
|
void testDef2() {
|
|
#ifdef USE_5
|
|
def2->func();
|
|
def3->func();
|
|
#ifndef USED
|
|
// expected-error@-3 {{definition of 'Def2' must be imported}}
|
|
#define USED
|
|
#endif
|
|
#endif
|
|
}
|