brintos

brintos / llvm-project-archived public Read only

0
0
Text · 597 B · 31f4b8b Raw
23 lines · cpp
1// Compiled on macOS using:2// 1. clang++ -c -std=c++2a -gdwarf-4 -O0 -o accel-imported-declaration.macho-arm64.o3// 2. clang++ -Wl,-oso_prefix=$PWD accel-imported-declaration.macho-arm64.o -o accel-imported-declaration.macho-arm644//5// In step 2 it's important to strip the absolute object file paths6//7// Verify that the OSO path isn't absolute using `nm -ap accel-imported-declaration.macho-arm64`8 9namespace A {10namespace B {11namespace C {12int a = -1;13} // namespace C14} // namespace B15 16namespace C = B::C;17 18using namespace B::C;19using B::C::a;20} // namespace A21 22int main() { return A::a; }23