1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 struct NonDefaultConstructible
{
4 NonDefaultConstructible(const NonDefaultConstructible
&); // expected-note{{candidate constructor}}
7 template<typename T
, typename U
>
12 template<typename T
, typename U
>
13 T X
<T
, U
>::member
; // expected-error{{no matching constructor}}
15 // Okay; this is a declaration, not a definition.
17 NonDefaultConstructible X
<NonDefaultConstructible
, long>::member
;
19 NonDefaultConstructible
&test(bool b
) {
20 return b
? X
<NonDefaultConstructible
, int>::member
// expected-note{{instantiation}}
21 : X
<NonDefaultConstructible
, long>::member
;
24 namespace rdar9422013
{
28 static unsigned array
[17];
32 template<> unsigned X
<1>::Inner::array
[]; // okay