Files
TheRock/debug-tools/rocgdb/source/gdb/testsuite/gdb.cp/nsusing.cc
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

141 lines
1.4 KiB
C++

namespace M
{
int x = 911;
}
namespace N
{
int x = 912;
}
int marker10 ()
{
int y = 1; // marker10 stop
using namespace M;
y += x;
using namespace N;
return y;
}
namespace J
{
int jx = 44;
}
namespace K
{
int marker9 ()
{
//x;
return marker10 ();
}
}
namespace L
{
using namespace J;
int marker8 ()
{
(void) jx;
return K::marker9 ();
}
}
namespace G
{
namespace H
{
int ghx = 6;
}
}
namespace I
{
int marker7 ()
{
using namespace G::H;
(void) ghx;
return L::marker8 ();
}
}
namespace E
{
namespace F
{
int efx = 5;
}
}
using namespace E::F;
int marker6 ()
{
(void) efx;
return I::marker7 ();
}
namespace A
{
int _a = 1;
int x = 2;
}
namespace C
{
int cc = 3;
}
namespace D
{
int dx = 4;
}
using namespace C;
int marker5 ()
{
(void) cc;
return marker6 ();
}
int marker4 ()
{
using D::dx;
return marker5 ();
}
int marker3 ()
{
return marker4 ();
}
int marker2 ()
{
namespace B = A;
(void) B::_a;
return marker3 ();
}
int marker1 ()
{
int total = 0;
{
int b = 1;
{
using namespace A;
int c = 2;
{
int d = 3;
total = _a + b + c + d + marker2 (); // marker1 stop
}
}
}
return marker2 () + total;
}
int main ()
{
using namespace A;
(void) _a;
return marker1 ();
}