Files
TheRock/compiler/amd-llvm/clang/test/CXX/dcl.decl/dcl.meaning/dcl.meaning.general/p3.cpp
T
derek.holloway 7502bf64a4
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
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

113 lines
1.4 KiB
C++

// RUN: %clang_cc1 -fsyntax-only -verify %s
namespace N0 {
template<typename T>
void f0();
template<typename T>
int x0 = 0;
template<typename T>
class C0;
}
using namespace N0;
template<>
void f0<int>(); // expected-error {{no function template matches}}
template<>
int x0<int>;
template<>
class C0<int>;
namespace N1 {
namespace N2 {
template<typename T>
void f2();
template<typename T>
int x2 = 0;
template<typename T>
class C2;
}
using namespace N2;
}
template<>
void N1::f2<int>(); // expected-error {{no function template matches}}
template<>
int N1::x2<int>;
template<>
class N1::C2<int>;
namespace N3 {
namespace N4 {
template<typename T>
void f4();
template<typename T>
int x4 = 0;
template<typename T>
class C4;
}
using N4::f4;
using N4::x4;
using N4::C4;
}
template<>
void N3::f4<int>(); // expected-error {{no function template matches}}
template<>
int N3::x4<int>;
template<>
class N3::C4<int>;
inline namespace N5 {
template<typename T>
void f5();
template<typename T>
int x5 = 0;
template<typename T>
class C5;
}
template<>
void f5<int>();
template<>
int x5<int>;
template<>
class C5<int>;
namespace N6 {
inline namespace N7 {
template<typename T>
void f7();
template<typename T>
int x7 = 0;
template<typename T>
class C7;
}
}
template<>
void N6::f7<int>();
template<>
int N6::x7<int>;
template<>
class N6::C7<int>;