// RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++14
// RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++17
// RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++20 -Wc++17-compat
inline
// expected-warning@+7 {{nested namespace definition is a C++17 extension; define each namespace separately}}
// expected-warning@+6 {{inline nested namespace definition is a C++20 extension}}
// expected-warning@+4 {{inline nested namespace definition is a C++20 extension}}
// expected-warning@+2 {{inline nested namespace definition is incompatible with C++ standards before C++20}}
// expected-note@-1 4 {{previous definition is here}}
// expected-warning@+3 {{nested namespace definition is a C++17 extension; define each namespace separately}}
//expected-warning@+1 2 {{inline namespace reopened as a non-inline namespace}}
// expected-warning@+7 {{nested namespace definition is a C++17 extension; define each namespace separately}}
// expected-warning@+6 {{inline nested namespace definition is a C++20 extension}}
// expected-warning@+4 {{inline nested namespace definition is a C++20 extension}}
// expected-warning@+2 {{inline nested namespace definition is incompatible with C++ standards before C++20}}
// namespace valid1