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
78 lines
1.8 KiB
C++
78 lines
1.8 KiB
C++
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
|
// expected-no-diagnostics
|
|
|
|
// C++03 [namespace.udecl]p3:
|
|
// For the purpose of overload resolution, the functions which are
|
|
// introduced by a using-declaration into a derived class will be
|
|
// treated as though they were members of the derived class. In
|
|
// particular, the implicit this parameter shall be treated as if it
|
|
// were a pointer to the derived class rather than to the base
|
|
// class. This has no effect on the type of the function, and in all
|
|
// other respects the function remains a member of the base class.
|
|
|
|
namespace test0 {
|
|
struct Opaque0 {};
|
|
struct Opaque1 {};
|
|
|
|
struct Base {
|
|
Opaque0 test0(int*);
|
|
Opaque0 test1(const int*);
|
|
Opaque0 test2(int*);
|
|
Opaque0 test3(int*) const;
|
|
};
|
|
|
|
struct Derived : Base {
|
|
using Base::test0;
|
|
Opaque1 test0(const int*);
|
|
|
|
using Base::test1;
|
|
Opaque1 test1(int*);
|
|
|
|
using Base::test2;
|
|
Opaque1 test2(int*) const;
|
|
|
|
using Base::test3;
|
|
Opaque1 test3(int*);
|
|
};
|
|
|
|
void test0() {
|
|
Opaque0 a = Derived().test0((int*) 0);
|
|
Opaque1 b = Derived().test0((const int*) 0);
|
|
}
|
|
|
|
void test1() {
|
|
Opaque1 a = Derived().test1((int*) 0);
|
|
Opaque0 b = Derived().test1((const int*) 0);
|
|
}
|
|
|
|
void test2() {
|
|
Opaque0 a = ((Derived*) 0)->test2((int*) 0);
|
|
Opaque1 b = ((const Derived*) 0)->test2((int*) 0);
|
|
}
|
|
|
|
void test3() {
|
|
Opaque1 a = ((Derived*) 0)->test3((int*) 0);
|
|
Opaque0 b = ((const Derived*) 0)->test3((int*) 0);
|
|
}
|
|
}
|
|
|
|
// Typedef redeclaration.
|
|
namespace rdar8018262 {
|
|
typedef void (*fp)();
|
|
|
|
namespace N {
|
|
typedef void (*fp)();
|
|
}
|
|
|
|
using N::fp;
|
|
|
|
fp fp_1;
|
|
}
|
|
|
|
// Things to test:
|
|
// member operators
|
|
// conversion operators
|
|
// call operators
|
|
// call-surrogate conversion operators
|
|
// everything, but in dependent contexts
|