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
133 lines
2.1 KiB
C++
133 lines
2.1 KiB
C++
#include <stdio.h>
|
|
#include <stdint.h>
|
|
|
|
namespace a {
|
|
class c {
|
|
public:
|
|
c();
|
|
~c();
|
|
void func1()
|
|
{
|
|
puts (__PRETTY_FUNCTION__);
|
|
}
|
|
void func2()
|
|
{
|
|
puts (__PRETTY_FUNCTION__);
|
|
}
|
|
void func3()
|
|
{
|
|
puts (__PRETTY_FUNCTION__);
|
|
}
|
|
};
|
|
|
|
c::c() {}
|
|
c::~c() {}
|
|
}
|
|
|
|
namespace aa {
|
|
class cc {
|
|
public:
|
|
cc();
|
|
~cc();
|
|
void func1()
|
|
{
|
|
puts (__PRETTY_FUNCTION__);
|
|
}
|
|
void func2()
|
|
{
|
|
puts (__PRETTY_FUNCTION__);
|
|
}
|
|
void func3()
|
|
{
|
|
puts (__PRETTY_FUNCTION__);
|
|
}
|
|
};
|
|
|
|
cc::cc() {}
|
|
cc::~cc() {}
|
|
}
|
|
|
|
namespace b {
|
|
class c {
|
|
public:
|
|
c();
|
|
~c();
|
|
void func1()
|
|
{
|
|
puts (__PRETTY_FUNCTION__);
|
|
}
|
|
void func3()
|
|
{
|
|
puts (__PRETTY_FUNCTION__);
|
|
}
|
|
};
|
|
|
|
c::c() {}
|
|
c::~c() {}
|
|
}
|
|
|
|
namespace c {
|
|
class d {
|
|
public:
|
|
d () {}
|
|
~d() {}
|
|
void func2()
|
|
{
|
|
puts (__PRETTY_FUNCTION__);
|
|
}
|
|
void func3()
|
|
{
|
|
puts (__PRETTY_FUNCTION__);
|
|
}
|
|
};
|
|
}
|
|
|
|
namespace ns {
|
|
template <typename Type> struct Foo {
|
|
template <typename T> void import() {}
|
|
|
|
template <typename T> auto func() {}
|
|
|
|
operator bool() { return true; }
|
|
|
|
template <typename T> operator T() { return {}; }
|
|
|
|
template <typename T> void operator<<(T t) {}
|
|
};
|
|
|
|
template <typename Type> void g() {}
|
|
} // namespace ns
|
|
|
|
int main (int argc, char const *argv[])
|
|
{
|
|
a::c ac;
|
|
aa::cc aac;
|
|
b::c bc;
|
|
c::d cd;
|
|
ac.func1();
|
|
ac.func2();
|
|
ac.func3();
|
|
aac.func1();
|
|
aac.func2();
|
|
aac.func3();
|
|
bc.func1();
|
|
bc.func3();
|
|
cd.func2();
|
|
cd.func3();
|
|
|
|
ns::Foo<double> f;
|
|
f.import <int>();
|
|
f.func<int>();
|
|
f.func<ns::Foo<int>>();
|
|
f.operator bool();
|
|
f.operator a::c();
|
|
f.operator ns::Foo<int>();
|
|
f.operator<<(5);
|
|
f.operator<< <ns::Foo<int>>({});
|
|
|
|
ns::g<int>();
|
|
ns::g<char>();
|
|
|
|
return 0;
|
|
}
|