// RUN: clang-cc -fsyntax-only -verify %s

struct NonDefaultConstructible {
  NonDefaultConstructible(const NonDefaultConstructible&);
};

template<typename T, typename U>
struct X {
  static T member;
};

template<typename T, typename U>
T X<T, U>::member; // expected-error{{no matching constructor}}

// Okay; this is a declaration, not a definition.
template<>
NonDefaultConstructible X<NonDefaultConstructible, long>::member;

NonDefaultConstructible &test(bool b) {
  return b? X<NonDefaultConstructible, int>::member // expected-note{{instantiation}}
          : X<NonDefaultConstructible, long>::member;
}

Test explicit specializations of static data members that are declarations, not definitions
Test explicit specializations of static data members that are declarations, not definitions

git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@83904 91177308-0d34-0410-b5e6-96231b3b80d8
