1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++1z %s
3 namespace [[deprecated
]] {} // expected-warning {{'deprecated' attribute on anonymous namespace ignored}}
5 namespace [[deprecated
]] N
{ // expected-note 4{{'N' has been explicitly marked deprecated here}}
16 int Y
= N::f(); // expected-warning {{'N' is deprecated}}
17 using N::X
; // expected-warning {{'N' is deprecated}}
22 using namespace N
; // expected-warning {{'N' is deprecated}}
26 namespace M
= N
; // expected-warning {{'N' is deprecated}}
29 [[nodiscard
, deprecated("")]] int PR37935();