llvm/clang/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/p5-cxx14.cpp

// RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++14

struct A {
  template<int N>
  static constexpr auto x = N;

  template<>
  constexpr auto x<1> = 1;

  template<>
  static constexpr auto x<2> = 2; // expected-warning{{explicit specialization cannot have a storage class}}
};