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

9 lines
172 B
C++

// RUN: %clang_cc1 -std=c++1z -verify %s -Wdeprecated
namespace {
struct A {
static constexpr int n = 0;
};
const int A::n; // expected-warning {{deprecated}}
}