llvm-project/clang/test/SemaCXX/using-decl.cpp
Matheus Izvekov fbb22ce1aa
[clang] NFC: new tests and some cleanups on existing ones (#142293)
This offloads some test changes from another PR in order to facilitate
review.

- Adds some new tests.
- Cleans stray spaces and newlines on existing tests.
- Regenerates some AST json dumps, as the generator now includes
offsets.
2025-05-31 19:34:11 -03:00

26 lines
430 B
C++

// RUN: %clang_cc1 -fsyntax-only -verify %s
namespace PR4441 {
namespace A {
struct B { };
void operator+(B,B);
}
using A::operator+;
} // namespace PR4441
namespace qualified_name {
namespace XXX {
struct A {
using type = int;
};
}
namespace YYY {
using XXX::A;
}
YYY::A::type x = nullptr;
// expected-error@-1 {{variable of type 'YYY::A::type'}}
} // namespace qualifed_name