llvm/clang/test/CXX/basic/basic.def/p2.cpp

// RUN: %clang_cc1 -std=c++1z -verify %s -Wdeprecated

namespace {
  struct A {
    static constexpr int n = 0;
  };
  const int A::n; // expected-warning {{deprecated}}

  struct B {
    static constexpr int m = 0;
  };
  constexpr int B::m; // expected-warning {{deprecated}}
}