llvm-project/clang/test/Parser/cxx-nested-name.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

12 lines
281 B
C++

// RUN: %clang_cc1 -fsyntax-only -verify %s
// expected-no-diagnostics
namespace binary_operator {
namespace N {
template <class> struct A {
static const int y = 0;
};
} // namespace N
void f(int x) { (void)(x < N::A<int>::y); }
} // namespace binary_operator