1 // RUN: %clang_cc1 -fsyntax-only -verify %s
4 #pragma clang system_header
10 struct [[deprecated
]] traits
<int> {}; // expected-note {{'traits<int>' has been explicitly marked deprecated here}}
12 template<typename T
, typename Trait
= traits
<T
>> // expected-warning {{'traits<int>' is deprecated}}
13 struct basic_string
{};
15 // should not warn, defined and used in system headers
16 using __do_what_i_say_not_what_i_do
= traits
<int> ;
18 template<typename T
, typename Trait
= traits
<double>>
19 struct should_not_warn
{};
25 basic_string
<int> test1
; // expected-note {{in instantiation of default argument for 'basic_string<int>' required here}}
26 should_not_warn
<int> test2
;