1 // RUN: %clang_cc1 -std=c++11 -fsyntax-only -Wno-nullability-declspec %s -verify -Wnullable-to-nonnull-conversion -I%S/Inputs
4 using Foo1
= Foo _Nonnull
; // expected-error{{nullability specifier '_Nonnull' cannot be applied to non-pointer type 'Foo'}}
6 using Foo2
= Foo _Nonnull
;
8 using Foo3
= Foo _Nonnull
;
12 using Bar1
= Bar
<int> _Nonnull
; // expected-error{{nullability specifier '_Nonnull' cannot be applied to non-pointer type 'Bar<int>'}}
15 using Bar2
= Bar
<int> _Nonnull
;
18 using Bar3
= Bar
<int> _Nonnull
;
21 template<class T
> class unique_ptr
;
22 using UP1
= unique_ptr
<int> _Nonnull
;
23 class X
{ template<class T
> friend class unique_ptr
; };
24 using UP2
= unique_ptr
<int> _Nonnull
;
25 template<class T
> class unique_ptr
;
26 using UP3
= unique_ptr
<int> _Nonnull
;